• 4277阅读
  • 0回复

[提问]Qt creator出现的bug [复制链接]

上一主题 下一主题
离线jinshuangyan
 

只看楼主 倒序阅读 楼主  发表于: 2011-05-20
简单的一个按钮编译完之后出现如下bug:
Running build steps for project nGui...
Starting: /usr/bin/qmake-qt4 /home/forlinux/nGui/nGui.pro -spec /usr/share/qt4/mkspecs/linux-g++ -r CONFIG+=debug
Exited with code 0.
Starting: /usr/bin/make -w
make:进入目录'/home/forlinux/nGui'
Makefile:189: 警告:覆盖关于目标“moc_mydlg.cpp”的命令
Makefile:186: 警告:忽略关于目标“moc_mydlg.cpp”的旧命令
Makefile:208: 警告:覆盖关于目标“ui_mydlg.h”的命令
Makefile:205: 警告:忽略关于目标“ui_mydlg.h”的旧命令
Makefile:234: 警告:覆盖关于目标“mydlg.o”的命令
Makefile:230: 警告:忽略关于目标“mydlg.o”的旧命令
g++ -o nGui main.o widget.o mydlg.o mydlg.o moc_widget.o moc_mydlg.o -L/usr/lib -lQtTest -lQtGui -lQtCore -lpthread
make:离开目录“/home/forlinux/nGui”
/usr/bin/ld: main.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: main.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: main.o: Relocations in generic ELF (EM: 40)
main.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [nGui] 错误 1
Exited with code 2.
Error while building project nGui
When executing build step 'Make'
快速回复
限100 字节
 
上一个 下一个