I'm using C++Builder 10.4 Community Edition. For the past few days, I've been trying to join the crypto++ library to my project, but with little success.
I downloaded the .zip
file from https://www.cryptopp.com/#download . After unpacking, it receives .cpp
and .h
files and project files, ie dlltest.vcxproj
, cryptlib.vcxproj
, cryptest.vcxproj
, cryptdll.vcxproj
. I compiled all of them in Visual Studio and I get folder x64
which contains folder output with .lib
, .pbd
and .ilk
files.
How can I use these files to include the crypto++ library to my project in C++Builder?
Please help me to include this library in a C++Builder project. I tried different ways, by specifying paths to the library file in "C++ Compiler" -> "Directories and Conditionals", but it led me to errors like "unresolved exteranl...\unit.obj". I will be very grateful if you explain how to do it.
Unfortunately, binary lib files are compiler-specific, so you can't use your VisualStudio-compiled lib files in C++Builder. You have two choices:
compile the .cpp
/ .h
files directly in C++Builder.
compile the code into a DLL in VisualStudio, and then use that DLL in your C++Builder project.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.