I got a problem of linking an OpenSSL library into an existing project. Where I do get it wrong?
Below are the steps I have followed.
I have downloaded the S
Have you tried using the libssl and libcrypto already installed in your /usr/lib directory (assuming you've installed the dev packages for both)? Once that compiles and runs without error using the default install, you can build your new libssl/libcrypto(?) from source, install to usr/local, and rebuild using the usr/local versions of the libraries.
You need to add the flag -lssl
and -lcrypto
in your makefile'
For example:
gcc somefile.c -o someprogram -lssl -lcrypto