• 9709阅读
  • 4回复

[提问]我在安装了Qt460和mingw441后编译一个qt例子遇到如下问题,如何解决 [复制链接]

上一主题 下一主题
离线yhs123
 
只看楼主 倒序阅读 楼主  发表于: 2009-12-28
— 本帖被 XChinux 从 Qt基础编程 移动到本区(2011-01-07) —
E:/QT4.0/bin/moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_EVAL -DQT_DLL -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include\QtOpenGL" -I"..\..\..\include" -I"..\shared" -I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"c:\PROGRA~1\Mercury\OIV5.0\include" -I"c:\TGS\OIV4.0\include" -I"..\..\..\mkspecs\win32-g++" -D__GNUC__ -DWIN32 window.h -o tmp\moc\debug_shared\moc_window.cpp
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_EVAL -DQT_DLL -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include\QtOpenGL" -I"..\..\..\include" -I"..\shared" -I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"c:\PROGRA~1\Mercury\OIV5.0\include" -I"c:\TGS\OIV4.0\include" -I"..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\moc_window.o tmp\moc\debug_shared\moc_window.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\hellogl.exe tmp/obj/debug_shared/glwidget.o tmp/obj/debug_shared/main.o tmp/obj/debug_shared/window.o tmp/obj/debug_shared/qtlogo.o tmp/obj/debug_shared/moc_glwidget.o tmp/obj/debug_shared/moc_window.o  -L"e:\QT4.0\lib" -L"c:\PROGRA~1\Mercury\OIV5.0\lib" -L"c:\TGS\OIV4.0\lib" -L"e:\QT4.0\lib" -lopengl32 -lglu32 -lgdi32 -luser32 -lmingw32 -lqtmaind -lQtOpenGLd4 -lQtGuid4 -lQtCored4
e:\QT4.0\lib/libqtmaind.a(qtmain_win.o): In function `WinMain@16':
C:\iwmake\build_mingw_opensource\src\winmain/qtmain_win.cpp:93: undefined reference to `_Unwind_Resume'
C:\iwmake\build_mingw_opensource\src\winmain/qtmain_win.cpp:135: undefined reference to `_Unwind_Resume'
e:\QT4.0\lib/libqtmaind.a(qtmain_win.o):C:\iwmake\build_mingw_opensource\src\winmain/../../include/QtCore/../../src/corelib/tools/qvector.h:481: undefined reference to `_Unwind_Resume'
e:\QT4.0\lib/libqtmaind.a(qtmain_win.o):C:\iwmake\build_mingw_opensource\src\winmain/../../include/QtCore/../../src/corelib/tools/qvector.h:482: undefined reference to `_Unwind_Resume'
e:\QT4.0\lib/libqtmaind.a(qtmain_win.o):qtmain_win.cpp:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
make.EXE[1]: *** [debug\hellogl.exe] Error 1
make.EXE[1]: Leaving directory `E:/QT4.0/examples/opengl/hellogl'
make.EXE: *** [debug-all] Error 2
离线victorsummer
只看该作者 1楼 发表于: 2010-01-04
卸载干净了 重装吧 先装mingw 再装qt 使用qt前设置好环境变量
[ 此帖被victorsummer在2010-01-06 09:43重新编辑 ]
离线tmsj008
只看该作者 2楼 发表于: 2010-01-12
和我 开始 遇到的 错误 一样
去 官方 下载  包含 mingw 的sdk
重新安装 就 可以了
离线aniven

只看该作者 3楼 发表于: 2010-01-25
和我的一样,我下的是整合的SDK也如此,但是把Demo复制到磁盘根目录编译就正常,至今无解,谁解释一下?
离线hope_yh

只看该作者 4楼 发表于: 2010-01-27
谢谢3楼的建议,我也这样做就好了
快速回复
限100 字节
 
上一个 下一个