首页| 论坛| 消息

标题:QT编译过程中出现的不是语法的问题?
作者:yjb0708
日期:2008-09-28 15:11
内容:

我使用的是博创公司的开发板s3c2410,用它自带的qt-2.3.2制作图形用户界面,语法没有错误,但是make出现一下错误,请问是什么问题?
  是因为GCC版本过高吗?还是哪里的配置出现问题呢?请大虾们指教阿?
下面是编译过程:
wangsite@wangsite-laptop:~/DeskGTop/radiogui$ make
arm-linux-gcc  -o radiogui main.o radiogui.o moc_radiogui.o  -L/home/wangsite/2410sQt/target/qt-2.3.10/lib -lm -lqte
radiogui.o(.text+0xa0): In function `Form1::Form1(QWidget*, char const*, bool, unsigned int)':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x180): In function `Form1::Form1(QWidget*, char const*, bool, unsigned int)':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x1a0): In function `Form1::Form1(QWidget*, char const*, bool, unsigned int)':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x270): In function `Form1::Form1(QWidget*, char const*, bool, unsigned int)':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x31c): In function `Form1::Form1(QWidget*, char const*, bool, unsigned int)':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x3c0): more undefined references to `operator new(unsigned int)' follow
radiogui.o(.text+0x7244): In function `Form1::~Form1()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0x73a4): In function `Form1::AddEntrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x7510): In function `Form1::AsiaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x7a60): In function `Form1::AfricaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x7a70): In function `Form1::AfricaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x7b04): In function `Form1::AfricaToCountrySlot()':
: undefined referen ..


#1 [taomic 09-28 15:18]
贴了一大段错误信息有什么用,把你出错的程序也贴一下啊
提示的意思是只看到了函数申明而没有具体定义,是不是缺少文件,或是库不对,也可能是没有把相关功能配置进去
#2 [vintx 09-28 15:25]
都是未定义,加入相应的头文件试试看
#3 [nmiirq 09-28 16:17]
wangsite@wangsite-laptop:~/DeskGTop/radiogui$ make
arm-linux-gcc -o radiogui main.o radiogui.o moc_radiogui.o -L/home/wangsite/2410sQt/target/qt-2.3.10/lib -lm -lqte
怎么能用gcc 去编译QT的东西呢?new 它如何解释??
应该是g++

回复 发表
主题 版块