首页| 论坛| 消息

标题:QTOPIA下helloworld程序用gcc编译成功,但是用arm-linux-gcc出错
作者:m105
日期:2007-06-27 20:00
内容:

LINUX版本 REDHAT AS版
gcc.4.3
工具链arm-linux-gcc4.0
Qtopia4.2.0
程序是helloworld放在hello文件夹中
qmake -project
qmake
make
能够成功在X11下运行
修改Makefile文件中的cc成为arm-linux-gcc,g++改为arm-linux-g++,ar改为arm-linux-ar
接着make后就报错:
# make
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/qtopia-opensource-4.2.0/qtopiacore/qt/mkspecs/linux-g++ -I. -I/opt/qtopia-opensource-4.2.0/qtopiacore/host/include/QtCore -I/opt/qtopia-opensource-4.2.0/qtopiacore/host/include/QtCore -I/opt/qtopia-opensource-4.2.0/qtopiacore/host/include/QtGui -I/opt/qtopia-opensource-4.2.0/qtopiacore/host/include/QtGui -I/opt/qtopia-opensource-4.2.0/qtopiacore/host/include -I. -I. -I. -o main.o main.cpp
/opt/qtopia-opensource-4.2.0/qtopiacore/host/include/QtCore/../../../qt/src/corelib/arch/qatomic_i386.h: In function 'int main(int, char**)':
/opt/qtopia-opensource-4.2.0/qtopiacore/host/include/QtCore/../../../qt/src/corelib/arch/qatomic_i386.h:72: error: impossible constraint in 'asm'
/opt/qtopia-opensource-4.2.0/qtopiacore/host/include/QtCore/../../../qt/src/corelib/arch/qatomic_i386.h:72: error: impossible constraint in 'asm'
make: *** Error 1
请问哪位大侠能帮下忙解释下我错在哪里怎么修改吗?

回复 发表
主题 版块