You need to link the libSSL library. Sort of
gcc -I /usr/local/ssl/include -o myprog myprog.c -lssl
will do the trick.
(Maybe this is not really -lssl , but -lopenssl , -lssl-rsa or something else, you can find this by typing
pkg-config
where PACKAGENAME is the name of the package containing libssl, something like libssl, openssl, libssl-dev, openssl-devel, etc.)
user529758
source share