- 积分
- 5593
贡献607
飞刀2 FD
注册时间2010-1-6
在线时间965 小时
|
发表于 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[4]: *** [.obj/release-shared/event.o] Error 1
make[4]: Leaving directory `/home/henryfok/TrollTech/qtopia-free-2.1.1/src/libraries/qtopia'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/henryfok/TrollTech/qtopia-free-2.1.1/src/libraries/qtopia'
make[2]: *** [sub-libraries-qtopia] Error 2
make[2]: Leaving directory `/home/henryfok/TrollTech/qtopia-free-2.1.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/henryfok/TrollTech/qtopia-free-2.1.1/src'
make: *** [all] 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 )
上面的信息来自网络,供楼主参考。 |
|