community: cpprestsdk - value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug'

Description of Problem, Request, or Question

Package Details (Include if Applicable)

  • Package Name/Version: cpprestsdk/2.10.1
  • Operating System: Windows 10 64Bit
  • Compiler+version: VC++ 2015 R3

Steps to reproduce (Include if Applicable)

conanfile.txt

[requires]
boost/1.66.0@conan/stable
cpprestsdk/2.10.1@bincrafters/stable
libzip/1.5.1@bincrafters/stable
zlib/1.2.11@conan/stable

[generators]
visual_studio_multi

[options]
boost:shared=False

conan profile show default

Configuration for profile default:

[settings]
arch=x86
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=14
os=Windows
os_build=Windows
arch_build=x86
[options]
[build_requires]
[env]
conan install . -g visual_studio_multi -s build_type=Debug --build missing
conan install . -g visual_studio_multi -s build_type=Release --build missing

3>cpprest_2_10.lib(json.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(json.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(json_serialization.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(json_serialization.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(asyncrt_utils.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(asyncrt_utils.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(uri.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(uri.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(uri_builder.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(uri_builder.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(http_msg.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(http_msg.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(http_client_msg.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(http_client_msg.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(http_client.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(http_client.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(web_utilities.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(web_utilities.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(http_listener_msg.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(http_listener_msg.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(http_listener.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(http_listener.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(base64.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(base64.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(ws_msg.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(ws_msg.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(ws_client_wspp.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(ws_client_wspp.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(stdafx.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(stdafx.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(json_parsing.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(json_parsing.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(http_helpers.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(http_helpers.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(oauth1.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(oauth1.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(http_client_winhttp.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(http_client_winhttp.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(http_server_api.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(http_server_api.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(ws_client.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(ws_client.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(x509_cert_utilities.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(x509_cert_utilities.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in App.obj 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in App.obj 3>LINK : warning LNK4098: defaultlib ‘MSVCRT’ conflicts with use of other libs; use /NODEFAULTLIB:library 3>cpprest_2_10.lib(oauth1.obj) : error LNK2019: unresolved external symbol _BCryptOpenAlgorithmProvider@16 referenced in function “private: static class std::vector<unsigned char,class std::allocator<unsigned char> > __cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)” (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z) 3>cpprest_2_10.lib(oauth1.obj) : error LNK2019: unresolved external symbol _BCryptGetProperty@24 referenced in function “private: static class std::vector<unsigned char,class std::allocator<unsigned char> > __cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)” (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z) 3>cpprest_2_10.lib(oauth1.obj) : error LNK2019: unresolved external symbol _BCryptCloseAlgorithmProvider@8 referenced in function “private: static class std::vector<unsigned char,class std::allocator<unsigned char> > __cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)” (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z) 3>cpprest_2_10.lib(oauth1.obj) : error LNK2019: unresolved external symbol _BCryptCreateHash@28 referenced in function “private: static class std::vector<unsigned char,class std::allocator<unsigned char> > __cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)” (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z) 3>cpprest_2_10.lib(oauth1.obj) : error LNK2019: unresolved external symbol _BCryptHashData@16 referenced in function “private: static class std::vector<unsigned char,class std::allocator<unsigned char> > __cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)” (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z) 3>cpprest_2_10.lib(oauth1.obj) : error LNK2019: unresolved external symbol _BCryptFinishHash@16 referenced in function “private: static class std::vector<unsigned char,class std::allocator<unsigned char> > __cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)” (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z) 3>cpprest_2_10.lib(oauth1.obj) : error LNK2019: unresolved external symbol _BCryptDestroyHash@4 referenced in function “private: static class std::vector<unsigned char,class std::allocator<unsigned char> > __cdecl web::http::oauth1::experimental::oauth1_config::_hmac_sha1(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)” (?_hmac_sha1@oauth1_config@experimental@oauth1@http@web@@CA?AV?$vector@EV?$allocator@E@std@@@std@@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@0@Z) 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpInitialize@12 referenced in function __catch$?read_headers_io_completion@windows_request_context@details@experimental@http@web@@QAEXKK@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpTerminate@8 referenced in function __catch$?read_headers_io_completion@windows_request_context@details@experimental@http@web@@QAEXKK@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpCreateRequestQueue@20 referenced in function __catch$?read_headers_io_completion@windows_request_context@details@experimental@http@web@@QAEXKK@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpCloseRequestQueue@4 referenced in function __catch$?read_headers_io_completion@windows_request_context@details@experimental@http@web@@QAEXKK@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpShutdownRequestQueue@4 referenced in function __catch$?read_headers_io_completion@windows_request_context@details@experimental@http@web@@QAEXKK@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpCreateServerSession@12 referenced in function __catch$?read_headers_io_completion@windows_request_context@details@experimental@http@web@@QAEXKK@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpCloseServerSession@8 referenced in function __catch$?read_headers_io_completion@windows_request_context@details@experimental@http@web@@QAEXKK@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpCreateUrlGroup@16 referenced in function __catch$?read_headers_io_completion@windows_request_context@details@experimental@http@web@@QAEXKK@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpCloseUrlGroup@8 referenced in function __catch$?read_headers_io_completion@windows_request_context@details@experimental@http@web@@QAEXKK@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpAddUrlToUrlGroup@24 referenced in function __catch$?read_headers_io_completion@windows_request_context@details@experimental@http@web@@QAEXKK@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpSetUrlGroupProperty@20 referenced in function __catch$?read_headers_io_completion@windows_request_context@details@experimental@http@web@@QAEXKK@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpReceiveHttpRequest@32 referenced in function “public: void __thiscall web::http::experimental::details::windows_request_context::async_process_request(unsigned __int64,class web::http::http_request,unsigned long)” (?async_process_request@windows_request_context@details@experimental@http@web@@QAEX_KVhttp_request@45@K@Z) 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpReceiveRequestEntityBody@32 referenced in function __catch$?dispatch_request_to_listener@windows_request_context@details@experimental@http@web@@QAEXPAVhttp_listener_impl@2listener@345@@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpSendHttpResponse@44 referenced in function __catch$?dispatch_request_to_listener@windows_request_context@details@experimental@http@web@@QAEXPAVhttp_listener_impl@2listener@345@@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpSendResponseEntityBody@44 referenced in function __catch$?read_headers_io_completion@windows_request_context@details@experimental@http@web@@QAEXKK@Z$0 3>cpprest_2_10.lib(http_server_httpsys.obj) : error LNK2019: unresolved external symbol __imp__HttpCancelHttpRequest@16 referenced in function __catch$?read_headers_io_completion@windows_request_context@details@experimental@http@web@@QAEXKK@Z$0

BTW, I can not find cpprest*.dll under .conan folder. Did I do something wrong?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 45 (24 by maintainers)

Most upvoted comments

Seems that a post-build step could be added in property sheet, check this: http://www.dorodnic.com/blog/2014/03/20/visual-studio-macros/ See screenshot under 3. Double-Click to open it, and go to User Macros section:. There is a ‘Custom Build Step’ menu.

I haven’t try it yet.