Linking error in using OpenSSL 3.1.0 in C++ builder XE8

156 Views Asked by At

I'm trying to integrate Openssl 3.1.0 to my C++ project in C++ builder XE8. I tried each and every way to link lib file with my project but still getting error:

[ilink32 Error] Error: Unresolved external '_EVP_CIPHER_CTX_new' referenced from C:\USERS\ADMINISTRATOR\DOCUMENTS\EMBARCADERO\STUDIO\PROJECTS\TEST223\WIN32\DEBUG\TEST223.OBJ

steps I followed:

  1. downloaded the source code from openssl official page and extract it in local directory.
  2. in mingw32 i have built the library using the source code by make and make install.
  3. created the lib file from dll using implib.
  4. copy that lib file to the lib folder created by built.
  5. included the path of include folder to project->options->c++ compiler->directories and conditionals->include file search path.
  6. added the path of library folder to project->options->c++ Linker-> additional linked Libraries.
  7. also added the -lAdvapi32 -L"C:\Users\Administrator\Documents\Embarcadero\Studio\Projects\openssl-3.1.0\lib" -lcrypto -lssl project->options->c++ Linker->additional options.

and build the project and says the same error.

I have tried following resources to solve the error but unable to solve it.

Tagging @Remy Lebeau because I found your suggestions and ideas are more informative in terms of using in c++ builder.

0

There are 0 best solutions below