Qt无法链接到qtcore

时间:2013-06-30 16:36:08

标签: windows qt cmake

我正在尝试在Windows上构建http://anongit.kde.org/trojita

我安装了Mingw 4.4 Qt 4.8.4和CMake 2.8.11.1。

链接步骤失败,出现了十几个错误:

qwwsmtpclient.cpp:438: undefined reference to `_imp___ZNK7QString8endsWithERKS_N2Qt15CaseSensitivityE'

这是失败的命令:

d:\MinGW\4.4\bin\g++.exe   -Wall -g -g    -Wl,--whole-archive CMakeFiles\test_Composer_Submission.dir/objects.a -Wl,--no-whole-archive  -o test_Composer_Submission.exe -Wl,--out-implib,libtest_Composer_Submission.dll.a -Wl,--major-image-version,0,--minor-image-version,0  libImap.a libMSA.a libStreams.a libCommon.a libComposer.a libtest_LibMailboxSync.a h:\Qt\4.8.4\lib\libQtNetworkd4.a h:\Qt\4.8.4\lib\libQtSqld4.a h:\Qt\4.8.4\lib\libQtTestd4.a h:\Qt\4.8.4\lib\libQtGuid4.a libImap.a h:\Qt\4.8.4\lib\libQtNetworkd4.a h:\Qt\4.8.4\lib\libQtSqld4.a h:\Qt\4.8.4\lib\libQtCored4.a libComposer.a libMSA.a libStreams.a libCommon.a libqwwsmtpclient.a libMimetypesQt4.a h:\Qt\4.8.4\lib\libQtGuid4.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32

我检查过,libQtCored4包含__imp___ZNK7QString8endsWithERKS_N2Qt15CaseSensitivityE但不包含_imp___ZNK7QString8endsWithERKS_N2Qt15CaseSensitivityE

可能是什么问题?

在此完整记录http://paste.debian.net/13366/

0 个答案:

没有答案