You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with a git repo having a Visual Studio 2017 solution which builds successfully for everyone on my team...except for me. From a couple of my own C++ projects, I have almost two dozen LNK2005 linker errors referencing cpprest_2_10.lib like this one:
Error:
LNK2005 "public: __thiscall web::json::value::value(class web::json::value const &)" (??0value@json@web@@QAE@ABV012@@z) already defined in cpprest_2_10d.lib(cpprest_2_10d.dll) File:
C:\repos\spirion\SearchAgent2\SdmScanner\cpprestsdk140.lib(json.obj)
I am intentionally using CppRestSDK, and yet I have no idea why there is reference specifically to this cpprest_2_10d.lib. When I build CppRestSDK, no such library is created. Instead the CppRestSDK build gives me a library called cpprestsdk140.lib.
My best guess of why I'm having a problem...is that I might be the only engineer who installed vcpkg and obtained the CppRestSDK through vcpkg. But here is the thing...I used vcpkg in the context of a stand-alone C++ console app that has no relationship to the main repo/solution I'm working on with my team. I would expect that there is zero "bleed" between these visual studio solutions. The solution that has the linker errors has no relation to vcpkg; instead it simply has a full copy of the CppRestSDK source code and builds from scratch. It builds its copy of CppRestSDK without any issues.
Any idea of how or why this is happening?
The text was updated successfully, but these errors were encountered:
I'm working with a git repo having a Visual Studio 2017 solution which builds successfully for everyone on my team...except for me. From a couple of my own C++ projects, I have almost two dozen LNK2005 linker errors referencing
cpprest_2_10.lib
like this one:Error:
LNK2005 "public: __thiscall web::json::value::value(class web::json::value const &)" (??0value@json@web@@QAE@ABV012@@z) already defined in cpprest_2_10d.lib(cpprest_2_10d.dll)
File:
C:\repos\spirion\SearchAgent2\SdmScanner\cpprestsdk140.lib(json.obj)
I am intentionally using CppRestSDK, and yet I have no idea why there is reference specifically to this
cpprest_2_10d.lib
. When I build CppRestSDK, no such library is created. Instead the CppRestSDK build gives me a library calledcpprestsdk140.lib
.My best guess of why I'm having a problem...is that I might be the only engineer who installed vcpkg and obtained the CppRestSDK through vcpkg. But here is the thing...I used vcpkg in the context of a stand-alone C++ console app that has no relationship to the main repo/solution I'm working on with my team. I would expect that there is zero "bleed" between these visual studio solutions. The solution that has the linker errors has no relation to vcpkg; instead it simply has a full copy of the CppRestSDK source code and builds from scratch. It builds its copy of CppRestSDK without any issues.
Any idea of how or why this is happening?
The text was updated successfully, but these errors were encountered: