cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

static link lib for VS2010

Open drumfeet opened this issue 9 years ago • 2 comments

I am using VS2010 and would like to use cpprestsdk v1.2 in my win32 project since this is the last sdk version that supports VS2010. Is it possible to statically link the library to my application with my environment and sdk version used? I followed the instructions on this site https://katyscode.wordpress.com/2014/04/01/how-to-statically-link-the-c-rest-sdk-casablanca/ However, I keep getting unresolved external symbol error. :(

drumfeet avatar Jan 23 '17 08:01 drumfeet

Having this issue too, using VS2015. Static linking this library seems to trigger LNK2019 errors.

koemeet avatar Jan 29 '17 23:01 koemeet

You need to add the _NO_ASYNCRTIMP preprocessor value, you also need to add the following libs to the linker line: bcrypt.lib and winhttp.lib. This has resolved the issue for me.

AhmadChaker avatar Sep 27 '17 12:09 AhmadChaker