我想在Microsoft Visual Studio 2015中使用Qt 5.5。但是,使用Qt的Microsoft编译器的最后一个兼容版本是MSVC2013。因此,我想告诉Visual 2015使用旧版本的Microsoft编译器来编译“传统”模式。在Visual Studio 2015下使用Microsoft Visual C++ 2013编译
如何做到这一点?
当我使用MSVC2015我得到这个错误:
Gravité Code Description Projet Fichier Ligne
Erreur LNK2019 symbole externe non résolu "__declspec(dllimport) char const
* __cdecl std::_Winerror_map(int)" ([email protected]@@[email protected])
référencé dans la fonction "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall std::_System_error_category::message(int)const " ([email protected][email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@Z) helloworld C:\Users\roman\Documents\QtTest\bin\qtmaind.lib(qtmain_win.obj) 1
我想这是因为Qt的库被编译为MSVC2013
您是否尝试更改“项目属性” - >“常规” - >“平台工具集”? – stijn
@stijn我只在这个下拉列表中有Visual Studio 2015 ... –