I am trying to compile a C program using Netbeans IDE and windows 7 32 bit operating system. The program has references to following headers
#include <openssl/bio.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
I have downloaded the openssl package from Cygwin. I am able to run Openssl.exe from the C:\cygwin\bin\openssl.exe path successfully without any error.I have defined system environment variable and include directories in c compiler to C:\cygwin\bin.
But when program is compiled I am getting "openssl/bio.h: No such file or directory" fatal error.
As an alternative I downloaded 'openssl_1.1.1.orig.tar.gz' and expanded the same using cygwin terminal. The folders do contain all the required header files but I am seeing the same error even after setting the include directory path to newly downloaded directory.
Please let me know where I am going wrong.
-Ior/I? - M OehmC:\cygwin\binis not the correct include directory. If you have something likeC:\cygwin\usr\include\openssl\bio.hthen you might have to addC:\cygwin\usr\includeas include directory. What exactly do you mean with "openssl package from Cygwin"? What is the exact name of this package. Maybe it contains the binary program and library only. You may need a development library package. Ifopenssl_1.1.1.orig.tar.gzis a source code package you would have to build it before you can use it for your program. - Bodo