|
Boost Users : |
Subject: [Boost-users] [asio][openssl]Boost SSL with Visual Studio 2012 and OpenSSL
From: lx (lxlenovostar_at_[hidden])
Date: 2013-12-13 04:42:51
hello:
I use : windows 7 64bit, vs 2012 , boost 1.5.4 ,
Win64OpenSSL_Light-1_0_1e. the codes is:
########################
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
########################
When I complie it, the wrong messages is:
##########################################
1>gtest.obj : 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)"
(??1do_init_at_openssl_init_base_at_detail@ssl_at_asio@boost@@QAE_at_XZ)
1>gtest.obj : 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)"
(??0do_init_at_openssl_init_base_at_detail@ssl_at_asio@boost@@QAE_at_XZ)
1>gtest.obj : 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)"
(??0do_init_at_openssl_init_base_at_detail@ssl_at_asio@boost@@QAE_at_XZ)
1>gtest.obj : 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)"
(??0do_init_at_openssl_init_base_at_detail@ssl_at_asio@boost@@QAE_at_XZ)
1>gtest.obj : error LNK2019: unresolved external symbol
_CONF_modules_unload referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::~do_init(void)"
(??1do_init_at_openssl_init_base_at_detail@ssl_at_asio@boost@@QAE_at_XZ)
1>gtest.obj : error LNK2019: unresolved external symbol
_OPENSSL_add_all_algorithms_noconf referenced in function "public:
__thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::do_init(void)"
(??0do_init_at_openssl_init_base_at_detail@ssl_at_asio@boost@@QAE_at_XZ)
1>gtest.obj : error LNK2019: unresolved external symbol _EVP_cleanup
referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::~do_init(void)"
(??1do_init_at_openssl_init_base_at_detail@ssl_at_asio@boost@@QAE_at_XZ)
1>gtest.obj : error LNK2019: unresolved external symbol
_SSL_load_error_strings referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::do_init(void)"
(??0do_init_at_openssl_init_base_at_detail@ssl_at_asio@boost@@QAE_at_XZ)
1>gtest.obj : error LNK2019: unresolved external symbol _SSL_library_init
referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::do_init(void)"
(??0do_init_at_openssl_init_base_at_detail@ssl_at_asio@boost@@QAE_at_XZ)
1>gtest.obj : error LNK2019: unresolved external symbol
_ERR_reason_error_string referenced in function "public: virtual class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall
boost::asio::error::detail::ssl_category::message(int)const "
(?message_at_ssl_category_at_detail@error_at_asio@boost@@UBE?AV?$basic_string_at_DU
?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@H_at_Z)
1>gtest.obj : error LNK2019: unresolved external symbol _ERR_free_strings
referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::~do_init(void)"
(??1do_init_at_openssl_init_base_at_detail@ssl_at_asio@boost@@QAE_at_XZ)
1>gtest.obj : error LNK2019: unresolved external symbol _ERR_remove_state
referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::~do_init(void)"
(??1do_init_at_openssl_init_base_at_detail@ssl_at_asio@boost@@QAE_at_XZ)
1>gtest.obj : error LNK2019: unresolved external symbol _ENGINE_cleanup
referenced in function "public: __thiscall
boost::asio::ssl::detail::openssl_init_base::do_init::~do_init(void)"
(??1do_init_at_openssl_init_base_at_detail@ssl_at_asio@boost@@QAE_at_XZ)
1>D:\program\gdnscenter-1.12.2\src\Debug\gtest.exe : fatal error LNK1120:
13 unresolved externals
========== Build: 0 succeeded, 1 failed, 3 up-to-date, 0 skipped ==========
##########################################
the simiar question in stackoverflow :
http://stackoverflow.com/questions/9357751/boost-ssl-with-visual-studio-2010-and-openssl
.
I use the openssl win64. So, Maybe a bug in asio?
Thank you.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net