• 5401阅读
  • 5回复

QTE自带的hello例子程序用g++能编译通过,但是用arm-linux-g++就出错了 [复制链接]

上一主题 下一主题
离线aharock
 

只看楼主 倒序阅读 楼主  发表于: 2007-05-09
— 本帖被 XChinux 执行加亮操作(2008-04-11) —
环境变量设置应该也是正确的。
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: *** [hello.o] Error 1


请大侠指点啊,谢谢!
离线aharock

只看该作者 1楼 发表于: 2007-05-10
怎么没人回啊,有没有遇到同样问题的啊?
离线shiroki

只看该作者 2楼 发表于: 2007-05-21
看样子是arm-gcc的版本太高了吧,你的是什么版本的
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线无境
只看该作者 3楼 发表于: 2008-04-11
楼主 ,您那个qstring.h的问题后来是怎么解决的??????
能不能把你解决的过程告诉小弟啊!!!!!
小弟的邮箱是thomasjack1981@sina.com.cn
离线test654321

只看该作者 4楼 发表于: 2008-04-11
或许,你应该用arm-linux-g++ 3.3.2的版本
离线无境
只看该作者 5楼 发表于: 2008-04-15
这个问题碰到过,换一个编译器能过去,我原先使用的 是3.4.1就是这个问题,后来换成;了2.95.3,这个问题解决了,可是我现在有个问题就是在编译HELLO的时候出现COULD not read symbol  libqte.so库的问题,兄弟如果成功过去后,能不能介绍一下你是怎么过去的
快速回复
限100 字节
 
上一个 下一个