I did OpenSSL setup referencing How to install OpenSSL 1.1.1 and libSSL package? on windows subsystem Ubuntu 18.04. Writing CPP file in which using OpenSSL files:
#include <cstring>
#include <string>
#include <cmath>
#include <openssl/bn.h>When compile, It is giving me an error:
fatal error: 'openssl/bn.h' file not foundIf I check, this file exists in /usr/include/openssl/ and /opt/openssl/include/openssl. New to such errors, please help.
Edit:
I am writing a EOSIO smart contract in which I am including the above file. And when compiling using:
eosio-cpp catcatshamir.cpp -o catcatshamir.abiGetting the above errors.
EOS files are stored here /usr/opt/ and no errors for included header files from here.
1 Answer
I think you are probably missing libssl-dev.
sudo apt-get install libssl-dev 3