Russian Qt Forum

Qt => Установка, сборка, отладка, тестирование => Тема начата: Grekon от Август 17, 2009, 12:19



Название: Проблема при статической сборке библиотеки
Отправлено: Grekon от Август 17, 2009, 12:19
Добрый день. Пытался собрать qt 4.5.2. Сделал все как написано http://prog.org.ru/wiki/index.php?title=%D0%A1%D0%B1%D0%BE%D1%80%D0%BA%D0%B0_Qt_%D0%B1%D0%B5%D0%B7_%D0%B7%D0%B0%D0%B2%D0%B8%D1%81%D0%B8%D0%BC%D0%BE%D1%81%D1%82%D0%B5%D0%B9_%28MS_Visual_Studio%29 (http://prog.org.ru/wiki/index.php?title=%D0%A1%D0%B1%D0%BE%D1%80%D0%BA%D0%B0_Qt_%D0%B1%D0%B5%D0%B7_%D0%B7%D0%B0%D0%B2%D0%B8%D1%81%D0%B8%D0%BC%D0%BE%D1%81%D1%82%D0%B5%D0%B9_%28MS_Visual_Studio%29)(способ 2)
запустил configure так:
configure -platform win32-msvc2005 -static -release -plugin-sql-odbc -plugin-sql-sqlite -no-sql-sqlite -no-phonon -no-webkit -no-phonon-backend -no-qt3support
все нормально. запусил nmake.
Соборка завершилась так:
Код:
webxmlgenerator.cpp
.\webxmlgenerator.cpp(134) : warning C4065: switch statement contains 'default'
but no 'case' labels
yyindent.cpp
Generating Code...
        link /LIBPATH:"d:\Qt\4.5.2\lib" /LIBPATH:"d:\Qt\4.5.2\lib" /NOLOGO /INCR
EMENTAL:NO /LTCG /SUBSYSTEM:CONSOLE /MANIFEST /MANIFESTFILE:"tmp\obj\release_sta
tic\qdoc3.intermediate.manifest" /OUT:release\qdoc3.exe @C:\DOCUME~1\6787~1\LOCA
LS~1\Temp\nm3BF.tmp
LINK : /LTCG specified but no code generation required; remove /LTCG from the li
nk command line to improve linker performance

Это нормальное завершение сборки? При поптыке откомпилировать программу типа HelloWorld вываливается кача ошибок линковки. Параметр "Runtime Library" выставлен на "Multi-threaded (/MT)". Компилятор MSVC2005
Код:
1>Linking...
1>QtCore.lib(qxmlstream.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>QtCore.lib(qtimer.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>QtCore.lib(qtextboundaryfinder.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>QtCore.lib(qabstractitemmodel.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>QtCore.lib(qtimeline.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>QtCore.lib(qdiriterator.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>QtCore.lib(qsettings_win.obj) : error LNK2019: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) referenced in function "public: virtual __thiscall QWinSettingsPrivate::~QWinSettingsPrivate(void)" (??1QWinSettingsPrivate@@UAE@XZ)
1>QtCore.lib(qfsfileengine_iterator_win.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>QtCore.lib(qmimedata.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>QtCore.lib(qtemporaryfile.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>QtCore.lib(qsettings.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>QtCore.lib(qresource.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>QtCore.lib(qcoreglobaldata.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>QtCore.lib(qlibrary.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
и так далее...

1>D:\Мои документы\Visual Studio 2005\Projects\helloWorld\Release\helloWorld.exe : fatal error LNK1120: 18 unresolved externals

Кто-нибудь сталкивался с подобным?