Compiling OpenSSL for boost asio for Microsoft Visual Studio 2010
Posted
by
user560106
on Stack Overflow
See other posts from Stack Overflow
or by user560106
Published on 2011-01-02T02:50:13Z
Indexed on
2011/01/02
2:54 UTC
Read the original article
Hit count: 374
openssl
|boost-asio
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:
1>testing.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
© Stack Overflow or respective owner