首页| 论坛| 消息

标题:QTE自带的hello例子程序用g++能编译通过,但是用arm-linux-g++就出错了
作者:aharock
日期:2007-05-09 12:43
内容:

环境变量设置应该也是正确的。
TMAKEPATH =..../lib/qws/linux-arm-g++
QTPATH=...../qt-2.3.7
编译错误信息如下:
这是在编译qt自带hello例子时候出的错误,用的是arm-linux-gcc。如果用GCC编译则没有错误。请高人指点,谢谢!
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/root/qt/arm-qtopia/qt-2.3.7/include -o hello.o hello.cpp
In file included from /root/qt/arm-qtopia/qt-2.3.7/include/qwindowdefs.h:44,
from /root/qt/arm-qtopia/qt-2.3.7/include/qwidget.h:42,
from hello.h:14,
from hello.cpp:11:
/root/qt/arm-qtopia/qt-2.3.7/include/qstring.h: In member function `uchar& QChar::cell()':
/root/qt/arm-qtopia/qt-2.3.7/include/qstring.h:166: error: cannot bind packed field `((QChar*)this)->QChar::cl' to `uchar&'
/root/qt/arm-qtopia/qt-2.3.7/include/qstring.h: In member function `uchar& QChar::row()':
/root/qt/arm-qtopia/qt-2.3.7/include/qstring.h:167: error: cannot bind packed field `((QChar*)this)->QChar::rw' to `uchar&'
make: *** Error 1
请大侠指点啊,谢谢!


#1 [aharock 05-10 07:31]
怎么没人回啊,有没有遇到同样问题的啊?
#2 [shiroki 05-21 14:36]
看样子是arm-gcc的版本太高了吧,你的是什么版本的
#3 [无境 04-11 15:38]
楼主 ,您那个qstring.h的问题后来是怎么解决的??????
能不能把你解决的过程告诉小弟啊!!!!!
小弟的邮箱是thomasjack1981@sina.com.cn
#4 [test654321 04-11 16:16]
或许,你应该用arm-linux-g++ 3.3.2的版本
#5 [无境 04-15 13:24]
这个问题碰到过,换一个编译器能过去,我原先使用的 是3.4.1就是这个问题,后来换成;了2.95.3,这个问题解决了,可是我现在有个问题就是在编译HELLO的时候出现COULD not read symbollibqte.so库的问题,兄弟如果成功过去后,能不能介绍一下你是怎么过去的

回复 发表
主题 版块