• 9545阅读
  • 3回复

QT编译过程中出现的不是语法的问题? [复制链接]

上一主题 下一主题
离线yjb0708
 
只看楼主 倒序阅读 楼主  发表于: 2008-09-28
— 本帖被 XChinux 从 Qt Programming 移动到本区(2008-09-28) —
关键词: 界面
我使用的是博创公司的开发板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 reference to `operator new(unsigned int)'
radiogui.o(.text+0x7b6c): more undefined references to `operator new(unsigned int)' follow
radiogui.o(.text+0x8004): In function `Form1::AfricaToCountrySlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0x8014): In function `Form1::AfricaToCountrySlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0x801c): In function `Form1::AfricaToCountrySlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0x8034): In function `Form1::AfricaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x804c): In function `Form1::AfricaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x80a0): In function `Form1::AfricaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x80b8): In function `Form1::AfricaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x810c): In function `Form1::AfricaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x8124): more undefined references to `operator new(unsigned int)' follow
radiogui.o(.text+0x89b4): In function `Form1::OceaniaToCountrySlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0x89c4): In function `Form1::OceaniaToCountrySlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0x89cc): In function `Form1::OceaniaToCountrySlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0x89e4): In function `Form1::OceaniaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x89fc): In function `Form1::OceaniaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x8a50): In function `Form1::OceaniaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x8a68): In function `Form1::OceaniaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x8abc): In function `Form1::OceaniaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x8ad4): more undefined references to `operator new(unsigned int)' follow
radiogui.o(.text+0x9364): In function `Form1::AmericaToCountrySlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0x9374): In function `Form1::AmericaToCountrySlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0x937c): In function `Form1::AmericaToCountrySlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0x9394): In function `Form1::AmericaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x93ac): In function `Form1::AmericaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x9400): In function `Form1::AmericaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x9418): In function `Form1::AmericaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x946c): In function `Form1::AmericaToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0x9484): more undefined references to `operator new(unsigned int)' follow
radiogui.o(.text+0x9fc4): In function `Form1::EuroToCountrySlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0x9fd4): In function `Form1::EuroToCountrySlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0x9fdc): In function `Form1::EuroToCountrySlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0x9ff4): In function `Form1::EuroToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0xa00c): In function `Form1::EuroToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0xa060): In function `Form1::EuroToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0xa078): In function `Form1::EuroToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0xa0cc): In function `Form1::EuroToCountrySlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0xa0e4): more undefined references to `operator new(unsigned int)' follow
radiogui.o(.text+0xaaf8): In function `Form1::CountriyToChannelSlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0xab08): In function `Form1::CountriyToChannelSlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0xab10): In function `Form1::CountriyToChannelSlot()':
: undefined reference to `operator delete(void*)'
radiogui.o(.text+0xab9c): In function `Form1::CountriyToChannelSlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0xadc8): In function `Form1::CountriyToChannelSlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0xb008): In function `Form1::CountriyToChannelSlot()':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0xb2d0): In function `$a':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0xb4fc): In function `$a':
: undefined reference to `operator new(unsigned int)'
radiogui.o(.text+0xb73c): more undefined references to `operator new(unsigned int)' follow
/home/wangsite/2410sQt/target/qt-2.3.10/lib/libqte.so: undefined reference to `operator new[](unsigned int)'
/home/wangsite/2410sQt/target/qt-2.3.10/lib/libqte.so: undefined reference to `__cxa_pure_virtual'
/home/wangsite/2410sQt/target/qt-2.3.10/lib/libqte.so: undefined reference to `operator delete[](void*)'
collect2: ld returned 1 exit status
make: *** [radiogui] 错误 1


请问是什么问题阿?
[ 此贴被XChinux在2008-09-28 18:52重新编辑 ]
离线taomic

只看该作者 1楼 发表于: 2008-09-28
贴了一大段错误信息有什么用,把你出错的程序也贴一下啊
提示的意思是只看到了函数申明而没有具体定义,是不是缺少文件,或是库不对,也可能是没有把相关功能配置进去
离线vintx
只看该作者 2楼 发表于: 2008-09-28
都是未定义,加入相应的头文件试试看
离线nmiirq

只看该作者 3楼 发表于: 2008-09-28
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++
快速回复
限100 字节
 
上一个 下一个