I was trying to compile the following (example) code via C++ Builder 2010:
http://swarmapps.wordpress.com/2009/11/24/a-simplification-wrapper-for-the-crypto-library/
( http://pastebin.com/f6bd13d59 / example.cpp )
( http://pastebin.com/f2fc53f83 / BasicCryptoPPWrap.h )
There were no compiler errors but the linking failed:
[ILINK32 Error] Error: Unresolved external 'Cryp开发者_StackOverflow社区toPP::SimpleKeyingInterface::SetKey(const unsigned char *, unsigned int, CryptoPP::NameValuePairs&)' referenced from E:\TEST\DEBUG\FILE1.OBJ
How can I fix this problem?
from the same page
The wrapper is not a standalone solution. It requires your code to link to libcryptopp and know where the cryptopp header files are found. The Crypto++ website can help you set up your system. Once you get the validation suite to run successfully, you will be able to use this wrapper.
精彩评论