Compiling OpenSSL for boost asio for Microsoft Visual Studio 2010
- by user560106
I compiled boost with bjam, and then I compiled OpenSSL. Both of them work separately.
I set up the links in Visual Studio 10 to point to my OpenSSL library directory.
But when I attempt to compile example boost ssl asio programs I get 44 unresolved external linker errors like this one:
1testing.obj : error LNK2019: unresolved external symbol _SSLv23_server_method referenced in function "public: void __thiscall boost::asio::ssl::detail::openssl_context_service::create(struct ssl_ctx_st * &,enum boost::asio::ssl::context_base::method)" (?create@openssl_context_service@detail@ssl@asio@boost@@QAEXAAPAUssl_ctx_st@@W4method@context_base@345@@Z)
Can you please give me step-by-step instructions on properly linking OpenSSL to boost? Thank you so much