Cornel Maftuleac wrote:
Frank Moore wrote:
Hi,
I'm getting the following linker errors:
TestRNGImplementation error LNK2019: unresolved external symbol
"public: __thiscall
CryptoPP::DefaultDecryptorWithMAC::DefaultDecryptorWithMAC(char const
*,class CryptoPP::BufferedTransformation *,bool)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@Z)
referenced in function _main
TestRNGImplementation error LNK2019: unresolved external symbol
"public: __thiscall
CryptoPP::DefaultEncryptorWithMAC::DefaultEncryptorWithMAC(char const
*,class CryptoPP::BufferedTransformation *)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]@1@@Z)
referenced in function _main
when I try and build the TestEncryptionWithRng.cpp example under the
RandomNumberGenerator topic from denis bider's CryptoPPGuide.chm.
I was getting a lot more LNK2001 errors as well but fixed them by
adding the following lines to the program:
#include "dll.h"
USING_NAMESPACE(CryptoPP)
USING_NAMESPACE(std)
and pointing the project's Linker options towards the directories
where my .libs are.
I can build the cryptest project which also includes calls to
DefaultDecryptorWithMAC and DefaultEncryptorWithMAC.
I've tried to copy the project settings from one to the other to see
if that works but no luck.
I've looked at the mailing list and tried to follow the advice of
people who say to check the code generation options etc...
but still no luck there either.
If anyone has any thoughts I'd be very grateful.
Cheers,
F.
Try to add
#pragma comment (lib,"CryptoPP")
Cornel,
Thanks for responding.
I tried the #pragma, but I'm still getting the errors.
It's no big deal, I think I can work around it, but I'd still like to
know what's causing the problem.
Cheers,
F.