J
J
Junior0072016-11-15 13:58:03
OpenSSL
Junior007, 2016-11-15 13:58:03

How to connect OpenSSL?

How to connect OpenSSL to C++ (Visual Studio)?
As I understand it, it's just a set of sources? And you don't need to collect them in lib?
I threw the opensll folder into VC/include. It is defined in the IDE. Cannot see one file:
cannot open source file "openssl/opensslconf.h"
There is a file in the folder called opensslconf.h.in - changing the name does not help :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor Marquardt, 2016-11-15
@Junior007

It is necessary to collect in lib, from where does it have to pull the functions for you? in headers there seem to be only prototypes. You go to the project settings - Linker - Input - Additional. dependencies, add ssleay32.lib,
libeay32.lib. (Just look at the project configuration - x64, x32, it may not match the project configuration), the easiest way is to set the same settings in both configurations. After you have compiled the libs, go back to the project settings Linker - Additional library directories - select the folder with the libs. And you can not throw include into the studio folder, but register it in the project settings like this, go to the project settings VC ++ directories - Include directories and select the include folder, everything seems to be. Either can be found already assembled.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question