xiesa100 发表于 2011-7-7 15:51:03

飞凌-fatfish 发表于 2011-7-8 09:40:01

Q1:

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 )



上面的信息来自网络,供楼主参考。

xiesa100 发表于 2011-7-8 15:20:02

飞凌-fatfish 发表于 2011-7-9 16:53:59

哦,我编译的时候没有碰到过这个。呵呵。
页: [1]
查看完整版本: qt2.2.0在redhat5上编译错误有几处无法解决