microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.89k stars 1.63k forks source link

LNK2038 and LNK2019 Errors #1544

Open Zombieanfuehrer opened 3 years ago

Zombieanfuehrer commented 3 years ago

Hey guys,

I installed the cpprestsdk with conan for my project on a Windows 10 system with the MSVC 2019 amd64_x86 compiler. I want to build my project with CMake, conan installed the cpprest142_2_10.lib for me. Including the headerfiles from the cpprestsdk works fine. But if i build the project in release or debug mode (cpprest142_2_10d.lib) i get the following output:

[build] cpprest142_2_10.lib(asyncrt_utils.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(asyncrt_utils.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(uri.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(uri.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(uri_builder.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(uri_builder.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_msg.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_msg.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_msg.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_msg.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(fileio_win32.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(fileio_win32.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(stdafx.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(stdafx.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(json.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(json.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(json_parsing.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(json_parsing.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_compression.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_compression.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_helpers.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_helpers.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(web_utilities.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(web_utilities.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(oauth1.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(oauth1.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(json_serialization.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(json_serialization.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(base64.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt nicht mit dem Wert "2" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(base64.obj) : error LNK2038: Konflikt ermittelt für "RuntimeLibrary": Der Wert "MD_DynamicRelease" stimmt nicht mit dem Wert "MDd_DynamicDebug" in main.obj überein. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] LINK : warning LNK4098: Standardbibliothek "MSVCRT" steht in Konflikt mit anderen Bibliotheken; /NODEFAULTLIB:Bibliothek verwenden. [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] mainwindow.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual struct QMetaObject const __cdecl MainWindow::metaObject(void)const " (?metaObject@MainWindow@@UEBAPEBUQMetaObject@@XZ)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] mainwindow.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void cdecl MainWindow::qt_metacast(char const )" (?qt_metacast@MainWindow@@UEAAPEAXPEBD@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] mainwindow.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual int __cdecl MainWindow::qt_metacall(enum QMetaObject::Call,int,void *)" (?qt_metacall@MainWindow@@UEAAHW4Call@QMetaObject@@HPEAPEAX@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(web_utilities.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp_CryptProtectMemory" in Funktion ""public: cdecl web::details::win32_encryption::win32_encryption(class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &)" (??0win32_encryption@details@web@@QEAA@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(web_utilities.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_CryptUnprotectMemory" in Funktion ""public: class std::unique_ptr<class std::basic_string<wchar_t,struct std::char_traits,class std::allocator >,class web::details::zero_memory_deleter> __cdecl web::details::win32_encryption::decrypt(void)const " (?decrypt@win32_encryption@details@web@@QEBA?AV?$unique_ptr@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@Vzero_memory_deleter@details@web@@@std@@XZ)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(oauth1.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "BCryptOpenAlgorithmProvider" in Funktion ""private: static class std::vector<unsigned char,class std::allocator > cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &,class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &)" (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(oauth1.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "BCryptGetProperty" in Funktion ""private: static class std::vector<unsigned char,class std::allocator > cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &,class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &)" (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(oauth1.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "BCryptCloseAlgorithmProvider" in Funktion ""private: static class std::vector<unsigned char,class std::allocator > cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &,class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &)" (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(oauth1.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "BCryptCreateHash" in Funktion ""private: static class std::vector<unsigned char,class std::allocator > cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &,class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &)" (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(oauth1.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "BCryptHashData" in Funktion ""private: static class std::vector<unsigned char,class std::allocator > cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &,class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &)" (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(oauth1.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "BCryptFinishHash" in Funktion ""private: static class std::vector<unsigned char,class std::allocator > cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &,class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &)" (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(oauth1.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "BCryptDestroyHash" in Funktion ""private: static class std::vector<unsigned char,class std::allocator > cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &,class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > const &)" (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpSetStatusCallback" in Funktion ""void __cdecl std::_Destroy_in_place(class web::http::client::details::winhttp_client &)" (??$_Destroy_in_place@Vwinhttp_client@details@client@http@web@@@std@@YAXAEAVwinhttp_client@details@client@http@web@@@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpGetDefaultProxyConfiguration" in Funktion ""protected: unsigned long cdecl web::http::client::details::winhttp_client::open(void)" (?open@winhttp_client@details@client@http@web@@IEAAKXZ)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp_WinHttpOpen" in Funktion ""protected: unsigned long cdecl web::http::client::details::winhttp_client::open(void)" (?open@winhttp_client@details@client@http@web@@IEAAKXZ)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpCloseHandle" in Funktion ""void __cdecl std::_Destroy_in_place(class web::http::client::details::winhttp_client &)" (??$_Destroy_in_place@Vwinhttp_client@details@client@http@web@@@std@@YAXAEAVwinhttp_client@details@client@http@web@@@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpConnect" in Funktion ""protected: unsigned long cdecl web::http::client::details::winhttp_client::open(void)" (?open@winhttp_client@details@client@http@web@@IEAAKXZ)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp_WinHttpReadData" in Funktion ""private: static void cdecl web::http::client::details::winhttp_client::completion_callback(void ,unsigned __int64,unsigned long,void ,unsigned long)" (?completion_callback@winhttp_client@details@client@http@web@@CAXPEAX_KK0K@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpWriteData" in Funktion ""public: void __cdecl ::operator()(class Concurrency::task<unsigned int64>)const " (??R@@QEBAXV?$task@_K@Concurrency@@@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpQueryDataAvailable" in Funktion ""private: static void cdecl web::http::client::details::winhttp_client::read_next_response_chunk(class web::http::client::details::winhttp_request_context *,unsigned long,bool)" (?read_next_response_chunk@winhttp_client@details@client@http@web@@CAXPEAVwinhttp_request_context@2345@K_N@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpQueryOption" in Funktion ""private: static class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > cdecl web::http::client::details::winhttp_client::get_request_url(void *)" (?get_request_url@winhttp_client@details@client@http@web@@CA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@PEAX@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpSetOption" in Funktion ""protected: unsigned long cdecl web::http::client::details::winhttp_client::open(void)" (?open@winhttp_client@details@client@http@web@@IEAAKXZ)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpSetTimeouts" in Funktion ""protected: unsigned long __cdecl web::http::client::details::winhttp_client::open(void)" (?open@winhttp_client@details@client@http@web@@IEAAKXZ)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpOpenRequest" in Funktion ""protected: virtual void cdecl web::http::client::details::winhttp_client::send_request(class std::shared_ptr const &)" (?send_request@winhttp_client@details@client@http@web@@MEAAXAEBV?$shared_ptr@Vrequest_context@details@client@http@web@@@std@@@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp_WinHttpAddRequestHeaders" in Funktion ""protected: virtual void cdecl web::http::client::details::winhttp_client::send_request(class std::shared_ptr const &)" (?send_request@winhttp_client@details@client@http@web@@MEAAXAEBV?$shared_ptr@Vrequest_context@details@client@http@web@@@std@@@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpSendRequest" in Funktion ""private: void __cdecl web::http::client::details::winhttp_client::_start_request_send(class std::shared_ptr const &,unsigned int64)" (?_start_request_send@winhttp_client@details@client@http@web@@AEAAXAEBV?$shared_ptr@Vwinhttp_request_context@details@client@http@web@@@std@@_K@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpSetCredentials" in Funktion ""private: static bool cdecl web::http::client::details::winhttp_client::handle_authentication_failure(void *,class std::shared_ptr const &,unsigned long)" (?handle_authentication_failure@winhttp_client@details@client@http@web@@CA_NPEAXAEBV?$shared_ptr@Vwinhttp_request_context@details@client@http@web@@@std@@K@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpQueryAuthSchemes" in Funktion ""private: static bool cdecl web::http::client::details::winhttp_client::handle_authentication_failure(void ,class std::shared_ptr const &,unsigned long)" (?handle_authentication_failure@winhttp_client@details@client@http@web@@CA_NPEAXAEBV?$shared_ptr@Vwinhttp_request_context@details@client@http@web@@@std@@K@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp_WinHttpReceiveResponse" in Funktion ""private: static void __cdecl web::http::client::details::winhttp_client::completion_callback(void ,unsigned int64,unsigned long,void *,unsigned long)" (?completion_callback@winhttp_client@details@client@http@web@@CAXPEAX_KK0K@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpQueryHeaders" in Funktion ""private: static void cdecl web::http::client::details::winhttp_client::completion_callback(void *,unsigned int64,unsigned long,void *,unsigned long)" (?completion_callback@winhttp_client@details@client@http@web@@CAXPEAX_KK0K@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpGetProxyForUrl" in Funktion ""protected: virtual void __cdecl web::http::client::details::winhttp_client::send_request(class std::shared_ptr const &)" (?send_request@winhttp_client@details@client@http@web@@MEAAXAEBV?$shared_ptr@Vrequest_context@details@client@http@web@@@std@@@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_WinHttpGetIEProxyConfigForCurrentUser" in Funktion ""protected: unsigned long cdecl web::http::client::details::winhttp_client::open(void)" (?open@winhttp_client@details@client@http@web@@IEAAKXZ)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp_CertFreeCertificateContext" in Funktion ""public: cdecl web::http::client::details::winhttp_cert_context::~winhttp_cert_context(void)" (??1winhttp_cert_context@details@client@http@web@@QEAA@XZ)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_CertGetCertificateChain" in Funktion ""public: void __cdecl web::http::client::details::winhttp_request_context::on_send_request_validate_cn(void)" (?on_send_request_validate_cn@winhttp_request_context@details@client@http@web@@QEAAXXZ)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_CertFreeCertificateChain" in Funktion ""public: cdecl web::http::client::details::winhttp_cert_chain_context::~winhttp_cert_chain_context(void)" (??1winhttp_cert_chain_context@details@client@http@web@@QEAA@XZ)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "imp_CertVerifyCertificateChainPolicy" in Funktion ""public: void __cdecl web::http::client::details::winhttp_request_context::on_send_request_validate_cn(void)" (?on_send_request_validate_cn@winhttp_request_context@details@client@http@web@@QEAAXXZ)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "CONF_modules_unload" in Funktion ""private: virtual void cdecl std::_Ref_count::_Destroy(void)" (?_Destroy@?$_Ref_count@Vdo_init@openssl_init_base@detail@ssl@asio@boost@@@std@@EEAAXXZ)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] cpprest142_2_10.lib(http_client_winhttp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "ERR_reason_error_string" in Funktion ""public: virtual class std::basic_string<char,struct std::char_traits,class std::allocator > cdecl boost::asio::error::detail::ssl_category::message(int)const " (?message@ssl_category@detail@error@asio@boost@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z)". [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] C:\Projekte\Cpp\dev\Miele_Oculus\build\bin\MIELE_OCULUS_Executable.exe : fatal error LNK1120: 38 nicht aufgelöste Externe [C:\Projekte\Cpp\dev\Miele_Oculus\build\app\MIELE_OCULUS_Executable.vcxproj] [build] Der Build wurde mit dem Exitcode 1 abgeschlossen.

In my CMakeList.txt at my app folder I added, among others, this:

${MAIN} PUBLIC cpprest142_2_10

If I build only the object files i got no issues..

barcharcraz commented 3 years ago

it looks like you're mixing iterator debug levels, which is not supported. Make sure the (MD/MDd/MT/MTd) settings match for each TU and library in your build