Bioxydyn Dev
2014-01-06 17:07:20 UTC
Hi,
I have successfully built cpp-netlib (v0.10.1) on both Windows using VS
2013 and OS X using clang. My application that uses cpp-netlib also builds
on both platforms. However, I encoutnered some unresolved symbols on
Windows that I didn't on OS X and wondered if anyone could enlighten me as
to the cause.
I create a client as follows:
client::request request(url);
client httpClient;
client::response response = httpClient.post(request, "some message");
On OS X this builds fine but on Windows I had to include ssleay32MTd.lib
and libeay32MTd.lib as additional link dependencies to resolve a load of
external symbols. I've included some of them below.
Can anyone tell me why this might be the case?
Error 1 error LNK2019: unresolved external symbol
_CRYPTO_cleanup_all_ex_data referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::~do_init(void)"
(??***@openssl_init_base@***@ssl@***@boost@@***@XZ)
cppnetlib-client-connections.lib(client.obj)
Error 2 error LNK2019: unresolved external symbol _CRYPTO_num_locks
referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::do_init(void)"
(??***@openssl_init_base@***@ssl@***@boost@@***@XZ)
cppnetlib-client-connections.lib(client.obj)
Error 3 error LNK2019: unresolved external symbol
_CRYPTO_set_locking_callback referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::do_init(void)"
(??***@openssl_init_base@***@ssl@***@boost@@***@XZ)
cppnetlib-client-connections.lib(client.obj)
Error 4 error LNK2019: unresolved external symbol _CRYPTO_set_id_callback
referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::do_init(void)"
(??***@openssl_init_base@***@ssl@***@boost@@***@XZ)
cppnetlib-client-connections.lib(client.obj)
Error 5 error LNK2019: unresolved external symbol _BIO_ctrl_pending
referenced in function "private: enum
boost::asio::ssl::detail::engine::want __thiscall
boost::asio::ssl::detail::engine::perform(int (__thiscall
boost::asio::ssl::detail::engine::*)(void *,unsigned int),void *,unsigned
int,class boost::system::error_code &,unsigned int *)"
(?***@engine@***@ssl@***@boost@@AAE?***@12345@***@AEHPAXI@***@system@***@PAI@Z)
cppnetlib-client-connections.lib(client.obj)
I have successfully built cpp-netlib (v0.10.1) on both Windows using VS
2013 and OS X using clang. My application that uses cpp-netlib also builds
on both platforms. However, I encoutnered some unresolved symbols on
Windows that I didn't on OS X and wondered if anyone could enlighten me as
to the cause.
I create a client as follows:
client::request request(url);
client httpClient;
client::response response = httpClient.post(request, "some message");
On OS X this builds fine but on Windows I had to include ssleay32MTd.lib
and libeay32MTd.lib as additional link dependencies to resolve a load of
external symbols. I've included some of them below.
Can anyone tell me why this might be the case?
Error 1 error LNK2019: unresolved external symbol
_CRYPTO_cleanup_all_ex_data referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::~do_init(void)"
(??***@openssl_init_base@***@ssl@***@boost@@***@XZ)
cppnetlib-client-connections.lib(client.obj)
Error 2 error LNK2019: unresolved external symbol _CRYPTO_num_locks
referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::do_init(void)"
(??***@openssl_init_base@***@ssl@***@boost@@***@XZ)
cppnetlib-client-connections.lib(client.obj)
Error 3 error LNK2019: unresolved external symbol
_CRYPTO_set_locking_callback referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::do_init(void)"
(??***@openssl_init_base@***@ssl@***@boost@@***@XZ)
cppnetlib-client-connections.lib(client.obj)
Error 4 error LNK2019: unresolved external symbol _CRYPTO_set_id_callback
referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::do_init(void)"
(??***@openssl_init_base@***@ssl@***@boost@@***@XZ)
cppnetlib-client-connections.lib(client.obj)
Error 5 error LNK2019: unresolved external symbol _BIO_ctrl_pending
referenced in function "private: enum
boost::asio::ssl::detail::engine::want __thiscall
boost::asio::ssl::detail::engine::perform(int (__thiscall
boost::asio::ssl::detail::engine::*)(void *,unsigned int),void *,unsigned
int,class boost::system::error_code &,unsigned int *)"
(?***@engine@***@ssl@***@boost@@AAE?***@12345@***@AEHPAXI@***@system@***@PAI@Z)
cppnetlib-client-connections.lib(client.obj)
--
You received this message because you are subscribed to the Google Groups "The C++ Network Library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpp-netlib+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to cpp-netlib-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/cpp-netlib.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "The C++ Network Library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpp-netlib+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to cpp-netlib-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/cpp-netlib.
For more options, visit https://groups.google.com/groups/opt_out.