• 6734阅读
  • 3回复

运行QT程序时报错 [复制链接]

上一主题 下一主题
 

只看楼主 正序阅读 楼主  发表于: 2014-09-12
安装完QT Creator之后,新建一个QT4 Gui Application程序,然后编译运行时老是报如图所示的错误。。。。。。。新手百度,不过貌似很多都和这个不相关的。
`window.open('http://www.qtcn.org/bbs/attachment/Mon_1409/17_155729_628f0a2a21e1c15.jpg?132');" style="max-width:700px;max-height:700px;" onload="if(is_ie6&&this.offsetWidth>700)this.width=700;" >




这是我的具体描述错误:

Running build steps for project Hellow...
Configuration unchanged, skipping QMake step.
Starting: D:/Qt/2009.04/mingw/bin/mingw32-make.exe -w
mingw32-make: Entering directory `C:/MinGW/Hellow'
D:/Qt/2009.04/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/MinGW/Hellow'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\Hellow.exe debug/main.o debug/hellowdialog.o debug/moc_hellowdialog.o -L"d:\Qt\2009.04\qt\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
mingw32-make[1]: Leaving directory `C:/MinGW/Hellow'
mingw32-make: Leaving directory `C:/MinGW/Hellow'
debug/main.o: In function `Z5qMainiPPc':
C:/MinGW/Hellow/main.cpp:5: undefined reference to `__gxx_personality_sj0'
debug/hellowdialog.o: In function `ZN12HellowDialogC2EP7QWidget':
C:/MinGW/Hellow/hellowdialog.cpp:5: undefined reference to `__gxx_personality_sj0'
debug/hellowdialog.o: In function `ZN12HellowDialogC1EP7QWidget':
C:/MinGW/Hellow/hellowdialog.cpp:5: undefined reference to `__gxx_personality_sj0'
debug/hellowdialog.o: In function `ZThn8_N12HellowDialogD0Ev':
C:/MinGW/Hellow/hellowdialog.cpp:(.text$_ZN15Ui_HellowDialog7setupUiEP7QDialog[Ui_HellowDialog::setupUi(QDialog*)]+0xc): undefined reference to `__gxx_personality_sj0'
C:/MinGW/Hellow/hellowdialog.cpp:(.text$_ZN15Ui_HellowDialog13retranslateUiEP7QDialog[Ui_HellowDialog::retranslateUi(QDialog*)]+0xc): undefined reference to `__gxx_personality_sj0'
d:\Qt\2009.04\qt\lib/libqtmaind.a(qtmain_win.o):C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_create_more/Troll/4.5.0/qt/src/winmain/qtmain_win.cpp:92: more undefined references to `__gxx_personality_sj0' follow
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\Hellow.exe] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project Hellow
When executing build step 'Make'
技术人生
离线roywillow

只看该作者 3楼 发表于: 2014-09-13
编译qt库的编译器与你现在用的编译器不对应?
专业维修核潜艇,回收二手航母、二手航天飞机,大修核反应堆,拆洗导弹发动机更换机油,无人侦察机手动挡改自动,航天飞机保养换三滤,飞碟外太空年检 ,各型号导弹加装迎宾踏板,高空作业擦洗卫星表面除尘、打蜡及抛光,东风全系列巡航导弹。并提供原子对撞机。量大从优,有正规发票。
离线wangjiazhan

只看该作者 2楼 发表于: 2014-09-12
现在还用Qt4就有点老了。。。。
离线uidab

只看该作者 1楼 发表于: 2014-09-12
建议升级到Qt5吧,你这个版本的Qt有点老了 。2009.04是五年前的了。
有时候为了工作直接获得答案,而我却失去了思考的乐趣!


飘啊飘,何时能安居!
快速回复
限100 字节
 
上一个 下一个