1

我正在尝试编译我的第一个 Qt 项目,但是当我链接它时,我遇到了未解决的外部问题。这是完整的错误日志: http: //pastebin.com/KpjvFKfu

Qt5Gui.lib(qdrawhelper_sse2.obj) : error LNK2001: unresolved external symbol "char const * __cdecl std::_Winerror_map(int)" (?_Winerror_map@std@@YAPBDH@Z)
Qt5Gui.lib(qdrawhelper_avx.obj) : error LNK2001: unresolved external symbol "char const * __cdecl std::_Winerror_map(int)" (?_Winerror_map@std@@YAPBDH@Z)
Qt5Gui.lib(qdrawhelper_ssse3.obj) : error LNK2001: unresolved external symbol "char const * __cdecl std::_Winerror_map(int)" (?_Winerror_map@std@@YAPBDH@Z)
Qt5Gui.lib(Qt5Gui_pch.obj) : error LNK2001: unresolved external symbol "char const * __cdecl std::_Winerror_map(int)" (?_Winerror_map@std@@YAPBDH@Z)
Qt5Gui.lib(qimage_avx.obj) : error LNK2001: unresolved external symbol "char const * __cdecl std::_Winerror_map(int)" (?_Winerror_map@std@@YAPBDH@Z)
Qt5Gui.lib(qimage_sse2.obj) : error LNK2001: unresolved external symbol "char const * __cdecl std::_Winerror_map(int)" (?_Winerror_map@std@@YAPBDH@Z)
Qt5Gui.lib(qimage_ssse3.obj) : error LNK2001: unresolved external symbol "char const * __cdecl std::_Winerror_map(int)" (?_Winerror_map@std@@YAPBDH@Z)
main.obj : error LNK2001: unresolved external symbol "char const * __cdecl std::_Winerror_map(int)" (?_Winerror_map@std@@YAPBDH@Z)
.....

我正在使用用 VS2012 ×86 编译的 Qt(使用 -MT 参数编译)。我的程序也使用相同的编译器编译并静态链接。我链接了这些与 Qt 相关的库: Qt5Core.lib Qt5Gui.lib Qt5Widgets.lib qtmain.lib

我是否需要更多的库来包含或者是否有一些我错过的其他依赖项?我该如何解决这些错误?

4

0 回答 0