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:
- downloaded the source code from openssl official page and extract it in local directory.
- in mingw32 i have built the library using the source code by make and make install.
- created the lib file from dll using implib.
- copy that lib file to the lib folder created by built.
- included the path of include folder to project->options->c++ compiler->directories and conditionals->include file search path.
- added the path of library folder to project->options->c++ Linker-> additional linked Libraries.
- also added the
-lAdvapi32 -L"C:\Users\Administrator\Documents\Embarcadero\Studio\Projects\openssl-3.1.0\lib" -lcrypto -lsslproject->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.
- Use OpenSSL in C++Builder
- Using Embarcadero 10.1 Berlin with OpenSSL (C++)
- https://wiki.openssl.org/index.php/Compilation_and_Installation
- http://shane.hydrus.net/documentation/tutorial/GeneratingBorlandCppLibraryFiles/index.html
Tagging @Remy Lebeau because I found your suggestions and ideas are more informative in terms of using in c++ builder.