- 论坛徽章:
- 0
|
换了目录问题依旧存在啊。我有的是最新的mingw4.4,会不会和这个有关啊。我从网上搜了一下。有人说了没有链接到c++标准库
mingw32-make debug
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `D:/qttest'
d:\Qt\4.5.2\bin\uic.exe test.ui -o ui_test.h
g++-c -g -frtti -fexceptions -mthreads -Wall -DUNICODE-DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB-DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\Qt\4.5.2\include\QtCore"-I"..\Qt\4.5.2\include\QtGui" -I"..\Qt\4.5.2\include"-I"..\Qt\4.5.2\include\ActiveQt" -I"debug" -I"."-I"..\Qt\4.5.2\mkspecs\default" -o debug\main.o main.cpp
g++ -c -g-frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT-DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT-DQT_NEEDS_QMAIN -I"..\Qt\4.5.2\include\QtCore"-I"..\Qt\4.5.2\include\QtGui" -I"..\Qt\4.5.2\include"-I"..\Qt\4.5.2\include\ActiveQt" -I"debug" -I"."-I"..\Qt\4.5.2\mkspecs\default" -o debug\test.o test.cpp
d:\Qt\4.5.2\bin\moc.exe-DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB-DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\Qt\4.5.2\include\QtCore"-I"..\Qt\4.5.2\include\QtGui" -I"..\Qt\4.5.2\include"-I"..\Qt\4.5.2\include\ActiveQt" -I"debug" -I"."-I"..\Qt\4.5.2\mkspecs\default" -D__GNUC__ -DWIN32 test.h -odebug\moc_test.cpp
g++ -c -g -frtti -fexceptions -mthreads -Wall-DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB-DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\Qt\4.5.2\include\QtCore"-I"..\Qt\4.5.2\include\QtGui" -I"..\Qt\4.5.2\include"-I"..\Qt\4.5.2\include\ActiveQt" -I"debug" -I"."-I"..\Qt\4.5.2\mkspecs\default" -o debug\moc_test.o debug\moc_test.cpp
g++-enable-stdcall-fixup -Wl,-enable-auto-import-Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows-o debug\test.exe debug/main.o debug/test.odebug/moc_test.o -L"d:\Qt\4.5.2\lib" -lmingw32 -lqtmaind -lQtGuid4-lQtCored4
d:\Qt\4.5.2\lib/libqtmaind.a(qtmain_win.o): In function `WinMain':
C:/iwmake/build_mingw_opensource/src/winmain/qtmain_win.cpp:91: undefined reference to `__gxx_personality_sj0'
C:/iwmake/build_mingw_opensource/src/winmain/qtmain_win.cpp:91: undefined reference to `_Unwind_SjLj_Register'
C:/iwmake/build_mingw_opensource/src/winmain/qtmain_win.cpp:140: undefined reference to `_Unwind_SjLj_Resume'
C:/iwmake/build_mingw_opensource/src/winmain/qtmain_win.cpp:140: undefined reference to `_Unwind_SjLj_Unregister'
collect2: ld returned 1 exit status
mingw32-make[1]: Leaving directory `D:/qttest'
mingw32-make[1]: *** [debug\test.exe] Error 1
mingw32-make: *** [debug] Error 2 |
|