Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Going mad trying to compile against OpenSSL/libcrypto

I have been trying to do this for nearly 3 days now. Its driving me nuts.

As you can imagine I'm quite new to C++.

Can anyone give me step by step instructions to do a hello world program making use of a function in openssl and compile it from a cygwin shell on Windows.

like image 453
Tom Avatar asked Dec 08 '25 03:12

Tom


1 Answers

You forgot to link with libcrypto. Append -lcrypto to your linker flags.

like image 99
jweyrich Avatar answered Dec 10 '25 19:12

jweyrich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!