我使用cpprest與Qt Creator 4.2.1 基於Qt 5.8.0(MSVC 2015,32位)。鏈接錯誤在實用::轉換:: to_string_t在qt創建者
我已經修改了.pro
文件指示
INCLUDEPATH += C:/cpprest/Release/include
我收到以下錯誤:
mainwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_string,class std::allocator > __cdecl utility::conversions::to_string_t(class std::basic_string,class std::allocator > const &)" ([email protected]@[email protected]@[email protected][email protected][email protected]@@[email protected][email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@Z) referenced in function "class web::uri __cdecl generateOMDBQuery(class std::basic_string,class std::allocator > const &)" ([email protected]@[email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
按this答案我需要設置
視wchar_t內置類型至否 in C/C++ - >語言。
直到我明白這是視覺工作室的設置。我如何設置QT創建者?
用於此項目沒有導入庫的也許是原因。 – AlexanderVX