I'm trying to make a mini project that uses openssl
and I'm including <openssl/rsa.h>
header file. But I keep getting the following message:
hello.c:2:10: fatal error: openssl/rsa.h: No such file or directory
#include <openssl/rsa.h>
^~~~~~~~~~~~~~~
I can see that I have the following package installed: libopenssl1.1
root@OpenWrt:~# opkg list-installed | grep ssl
libopenssl1.1 - 1.1.1d-2
python3-openssl - 3.8.1-1
I'm simply compiling using gcc:
gcc hello.c && ./a.out
What am I doing wrong here? I assume I need to pass some sort of path to gcc
so it knows where to look for openssl
?