cpprestsdk
cpprestsdk copied to clipboard
linking error
I am building the sample Rest C++ program given in the Getting Started page, however on building the project , I am getting the following linking error:-
Main.obj : error LNK2001: unresolved external symbol "public: static class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const web::http::methods::GET" (?GET@methods@http@web@@2V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@B)
I am using Visual Studio 2015 and the cpprestsdk version is 2.9.1.1.
Try to link cpprestsdk statically, follow this link https://katyscode.wordpress.com/2014/04/01/how-to-statically-link-the-c-rest-sdk-casablanca/