I'm trying to create a PathValidation API using the OpenSSL Libary. Beacsue I just started with the OpenSSL Libary, I tried to get this code running http://www.frank4dd.com/howto/openssl/certverify.htm
Important to know I'm working on Windows 7 with the binary OpenSSL build and Eclipse C++.
When I'm trying to build the code from above I get
gcc -o PathValidationTest_C.exe verify.o
In function `main':
C:\Users\workspace_c++\PathValidationTest_C\Debug/../verify.c:19: undefined reference to `OPENSSL_add_all_algorithms_noconf'
C:\Users\workspace_c++\PathValidationTest_C\Debug/../verify.c:20: undefined reference to `ERR_load_BIO_strings'
C:\Users\workspace_c++\PathValidationTest_C\Debug/../verify.c:21: undefined reference to `ERR_load_crypto_strings'
...
And so on and on...
Then tried to link the libeay32.lib and ssleay32.lib from OpenSSL-Win64/lib which results in the same output..I included the ".h" from the OpenSSL-Win64/include/openssl folder.
Can anyone point me to a solution to solve this problem?
dumpbin /machine <obj or library>|grep machine. For 64 bit, there will be x64 and for 32 bit, there will be x86 in the string. - doptimusprime