I am trying to include
#include <openssl/evp.h>
to my C program.
I have downloaded openssl from their site and extracted folder
-openssl
- evp.h
however using compilation command
g++ -Wall -pedantic program.c -lopenssl/evp
threw same error
fatal error: evp.h: No such file or directory
#include <openssl/evp.h>
I have tried to just include #include
and copy evp.h directly to the folder with my program.c and compile it using
g++ -Wall -pedantic program.c -evp
yet it still throws same error. What is the right way to include this kind of library into my C program?
Thanks!.