Cannot open source file "openssl / bn.h"
You may not have indicated the inclusion path. If you are using Visual Studio, you should go to Tools-> Options-> Projects and Solutions-> C ++ Directories and select the "include files" option from the drop-down list and add the path to the includes openssl folder. Or you can simply copy the openssl folder to the sources folder and go to "openssl / bn.h".
The problem is that your compiler cannot find the bn.h header file. The reason for this may be that there is something wrong with your include path.
It is also possible that you did not install the header files. Depending on your system, you need to install a package called something like libssl-dev. This package contains header files. The libssl package contains only shared object files (ending in .so), they are necessary for the build process, and not for the compilation process. If installing libssl-dev solves your problem and after that there is a problem with the linker, you should also install libssl.