Hi,
I'm getting the following linker errors when I try and build my
application with Crypto++ 5.2.1 using the MS VS2003 compiler:
Client error LNK2001: unresolved external symbol "public: static void
__cdecl CryptoPP::SHA::InitState(unsigned int *)"
([EMAIL PROTECTED]@CryptoPP@@[EMAIL PROTECTED])
Client error LNK2001: unresolved external symbol "public: static void
__cdecl CryptoPP::SHA::Transform(unsigned int *,unsigned int const *)"
([EMAIL PROTECTED]@CryptoPP@@[EMAIL PROTECTED])
Client error LNK2019: unresolved external symbol "public: static void
__cdecl CryptoPP::SHA::InitState(unsigned int *)"
([EMAIL PROTECTED]@CryptoPP@@[EMAIL PROTECTED]) referenced in function "protected:
virtual void __thiscall
CryptoPP::IteratedHashWithStaticTransform<unsigned int,struct
CryptoPP::EnumToType<enum CryptoPP::ByteOrder,1>,64,20,class
CryptoPP::SHA,20>::Init(void)"
([EMAIL PROTECTED]@[EMAIL PROTECTED]@CryptoPP@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@$0BE@@CryptoPP@@MAEXXZ)
Client error LNK2019: unresolved external symbol "public: static void
__cdecl CryptoPP::SHA::Transform(unsigned int *,unsigned int const *)"
([EMAIL PROTECTED]@CryptoPP@@[EMAIL PROTECTED]) referenced in function
"protected: virtual void __thiscall
CryptoPP::IteratedHashWithStaticTransform<unsigned int,struct
CryptoPP::EnumToType<enum CryptoPP::ByteOrder,1>,64,20,class
CryptoPP::SHA,20>::HashEndianCorrectedBlock(unsigned int const *)"
([EMAIL PROTECTED]@[EMAIL PROTECTED]@CryptoPP@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@$0BE@@CryptoPP@@[EMAIL PROTECTED])
I don't understand these errors as I'm not actually using any of these
SHA methods.
However, the ones I am using (CalculateDigest and VerifyDigest) seem to
be linking correctly (or at least aren't giving any errors).
My project uses __cdecl as the calling convention and also uses
'Multi-threaded Debug' for the Runtime Library.
I've built CryptoPP as a static library rather than a DLL, and I've
tried to use use #pragma comment(lib,"CryptoPP") but without any success.
Am I missing something?
Or can anyone think of anything else I could try?
Many thanks,
F.