Compilation Failure for Boost SSL

I want to use

#include <boost/asio/ssl.hpp> 

but it once falls to me:

 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 

What is wrong with him?

+4
source share
3 answers

boost::asio::ssl requires OpenSSL .

http://www.boost.org/doc/libs/1_50_0/doc/html/boost_asio/overview/ssl.html

OpenSSL is required to use Boost.Asio SSL support.

Check the configuration of the boost::asio library and the OpenSSL configuration.

+7
source

You also need to install OpenSSL http://www.openssl.org/source/

+4
source

You need OpenSSl.

Follow this link: https://slproweb.com/products/Win32OpenSSL.html

You have a list of automatic intaller for Openssl on Windows!

Select "Win32 OpenSSL v1.0.2d." Install it on your system and add the required lib path to your project configuration.

Compile everything and it will work.

(Ways to add: XXXX / OpenSSL-Win32 \ include and XXXX / OpenSSL-Win32 \ lib)

0
source