天嵌 ARM开发社区

 找回密码
 注册
查看: 3249|回复: 3

使用arm-linux-g++时候出错

[复制链接]
wuywsy 发表于 2009-6-25 15:59:29 | 显示全部楼层 |阅读模式
报错信息如下:
[root@localhost first]# arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I$QTDIR/include -I$QPEDIR/include -o first.o first.cpp
In file included from /opt/EmbedSky/Qte/touch-qtopia/qt/include/qvariant.h:42,
                 from first.h:13,
                 from first.cpp:10:
/opt/EmbedSky/Qte/touch-qtopia/qt/include/qstring.h: In member function `uchar& QChar::cell()':
/opt/EmbedSky/Qte/touch-qtopia/qt/include/qstring.h:166: error: cannot bind packed field `((QChar*)this)->QChar::cl' to `uchar&'
/opt/EmbedSky/Qte/touch-qtopia/qt/include/qstring.h: In member function `uchar& QChar::row()':
/opt/EmbedSky/Qte/touch-qtopia/qt/include/qstring.h:167: error: cannot bind packed field `((QChar*)this)->QChar::rw' to `uchar&'
看上去像头文件里有问题,不知道是不是,如何解决
 楼主| wuywsy 发表于 2009-6-25 16:02:19 | 显示全部楼层
这个是我使用makefile出错以后单独输g++命令报的错
回复

使用道具 举报

 楼主| wuywsy 发表于 2009-6-26 09:20:27 | 显示全部楼层
这是不是qstring.h有问题呢?第一个first.o都不能生成
回复

使用道具 举报

亚瑟王 发表于 2009-6-26 09:43:36 | 显示全部楼层
uchar& QChar::row()这个用法和编译器有冲突,建议你下载我们网站上面提供的Qt的源码包进行编译,不同的编译器对语法的使用和解析不一样,源码有的用法在3.4.5中是错的,在3.3.2中又是正确的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-10-21 01:47 , Processed in 2.044574 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表