backend/event.cpp: In static member function ‘static int Event::dayOfWeek(char)’:
backend/event.cpp:419: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
backend/event.cpp:419: note: candidate 1: operator<=(int, int) <built-in>
/home/henryfok/TrollTech/qt-2.3.10/include/qstring.h:312: note: candidate 2: int operator<=(char, QChar)
make: *** [.obj/release-shared/event.o] Error 1
make: Leaving directory `/home/henryfok/TrollTech/qtopia-free-2.1.1/src/libraries/qtopia'
make: *** Error 2
make: Leaving directory `/home/henryfok/TrollTech/qtopia-free-2.1.1/src/libraries/qtopia'
make: *** Error 2
make: Leaving directory `/home/henryfok/TrollTech/qtopia-free-2.1.1/src'
make: *** Error 2
make: Leaving directory `/home/henryfok/TrollTech/qtopia-free-2.1.1/src'
make: *** Error
解决办法:
修改 qtopia-free-2.1.1/src/libraries/qtopia/backend/event.cpp 文件的第419行
将while ( !( i & day ) && i <= Event::SUN ) 行改为
while ( !static_cast<int>(( i & day ) && i) <= Event::SUN )
上面的信息来自网络,供楼主参考。 哦,我编译的时候没有碰到过这个。呵呵。
页:
[1]