You need to do two things from which you just made it.
You must tell your compiler where to find the relevant declarations. You did it by adding
#include "evp.h"
in the source file. (Depending on how you installed crypto ++, you may also need to tell the compiler where to find "evp.h"
, possibly using -Isome_directory
.)
If you were missing, you need to tell the linker where to find the actual implementation (compiled code) of the functions you use. According to the Readme.txt
file included in the distribution, bulding crypto ++ creates a library file called libcryptopp.a
.
So, something like this should complete this task:
gcc my_program.c -o my_program -lcryptopp
Depending on how and where you installed it, you may also need to specify -Lsome_directory
to tell the linker where to find libcryptopp.a
. (The gcc
command invokes both the compiler and the linker. The -l
option tells the linker to use libcryptopp.a
. The -l
option, if necessary, tells it which directory to look for.)
source share