刚用QT,遇到了问题,翻了以前的帖子,无果。所以开帖请教
环境:
windows 2k
qt-win-opensource-4.1.0-mingw.exe
MinGW-3.2.0
MSYS-1.0.10
mingw32-make-3.80.0-3
Designer 简单拖了个UI, uic->qmake->make,出错
出错信息如下:
$ make
make -f Makefile.Debug
make[1]: Entering directory `/e/yoke/work/qt/first'
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,windows -o "debug\first.exe" -L"D:\soft\devtools\SDK\QtForMinGW\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
D:\soft\devtools\SDK\QtForMinGW\lib/libqtmaind.a(qtmain_win.o)(.text+0xd): In function `Z16q_atomic_set_ptrPVvPv':
D:/soft/devtools/SDK/QtForMinGW/include/QtCore/../../src/corelib/thread/qatomic.h: undefined reference to `std::string::size() const'
D:\soft\devtools\SDK\QtForMinGW\lib/libqtmaind.a(qtmain_win.o)(.text+0x60):D:/soft/devtools/SDK/QtForMinGW/include/QtCore/../../src/corelib/thread/qatomic.h: undefined reference to `std::string::operator[](unsigned int) const'
D:\soft\devtools\SDK\QtForMinGW\lib/libqtmaind.a(qtmain_win.o)(.text+0x9f):D:/soft/devtools/SDK/QtForMinGW/include/QtCore/../../src/corelib/thread/qatomic.h: undefined reference to `std::string::operator[](unsigned int) const'
D:\soft\devtools\SDK\QtForMinGW\lib/libqtmaind.a(qtmain_win.o)(.text+0xce):D:/soft/devtools/SDK/QtForMinGW/include/QtCore/../../src/corelib/thread/qatomic.h: undefined reference to `std::string::operator[](unsigned int) const'
D:\soft\devtools\SDK\QtForMinGW\lib/libqtmaind.a(qtmain_win.o)(.text+0x10f): In function `WinMain':
D:/soft/devtools/SDK/QtForMinGW/src/winmain/qtmain_win.cpp:68: undefined reference to `__gxx_personality_sj0'
D:\soft\devtools\SDK\QtForMinGW\lib/libqtmaind.a(qtmain_win.o)(.text+0x30b):D:/soft/devtools/SDK/QtForMinGW/src/winmain/qtmain_win.cpp:105: undefined reference to `qMain(int, char**)'
collect2: ld returned 1 exit status
make[1]: *** [debug\first.exe] Error 1
make[1]: Leaving directory `/e/yoke/work/qt/first'
make: *** [debug] Error 2
好像是stl引发的问题
不知道怎么解决
请朋友们帮忙看看,应该怎么办
[ 此贴被XChinux在2006-01-05 21:47重新编辑 ]