我想使用
#include <boost/asio/ssl.hpp>
但它曾经丢弃我:
1>d:\boost\boost\asio\ssl\detail\openssl_types.hpp(19) : fatal error C1083: Cannot open include file: 'openssl/conf.h': No such file or directory
它出什么问题了?
我想使用
#include <boost/asio/ssl.hpp>
但它曾经丢弃我:
1>d:\boost\boost\asio\ssl\detail\openssl_types.hpp(19) : fatal error C1083: Cannot open include file: 'openssl/conf.h': No such file or directory
它出什么问题了?
boost::asio::ssl
需要OpenSSL
。
http://www.boost.org/doc/libs/1_50_0/doc/html/boost_asio/overview/ssl.html
OpenSSL是需要使用Boost.Asio的的SSL支持。
检查一下配置boost::asio
库和配置openssl
。
你还需要安装OpenSSL的http://www.openssl.org/source/
你需要OpenSSL的。
请点击此链接: https://slproweb.com/products/Win32OpenSSL.html
你有自动intaller OpenSSL的Windows上的列表!
选择 “的Win32 OpenSSL的v1.0.2d”。 它安装到您的系统和所需的路径添加到lib到您的项目配置。
重新编译一切,它会工作。
(路径添加有:XXXX / OpenSSL的-的Win32 \ include和XXXX / OpenSSL的-的Win32 \ lib中)