• 4862阅读
  • 0回复

QTOPIA下helloworld程序用gcc编译成功,但是用arm-linux-gcc出错 [复制链接]

上一主题 下一主题
离线m105
 
只看楼主 倒序阅读 楼主  发表于: 2007-06-27
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后就报错:
[root@localhost hello]# 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: *** [main.o] Error 1

请问哪位大侠能帮下忙解释下我错在哪里怎么修改吗?
快速回复
限100 字节
 
上一个 下一个