Hi

I found your problem:

MD5 isn't part of the Crypto++ DLLs, as it is only in there for backwards 
compability.
To check what is in the DLL, open the cryptopp project of the cryptest 
solution.
F.ex. the MD5 header isn't included and therefore MD5 isn't compiled into 
the DLL and therefore casues linker errors to you.

To fix this you must either use another hash-algorithm ( I recommendend 
SHA3 or SHA2) or you must use the static library (project cryptlib), which 
is complete and for the static one you must change your compiler switch 
accordingly.

BR

JPM

Am Mittwoch, 25. Dezember 2013 12:49:55 UTC+1 schrieb Sławomir Wójcik:
>
> Hi. Can you help me with this?
>
> Error 3 error LNK1120: 2 unresolved externals 
> F:\INZ\Inżynierka\Debug\Inżynierka.exe 
>
> Error 2 error LNK2019: unresolved external symbol "public: static void 
> __cdecl CryptoPP::Weak1::MD5::InitState(unsigned int *)" 
> (?InitState@MD5@Weak1@CryptoPP@@SAXPAI@Z) referenced in function 
> "protected: virtual void __thiscall 
> CryptoPP::IteratedHashWithStaticTransform<unsigned int,struct 
> CryptoPP::EnumToType<enum CryptoPP::ByteOrder,0>,64,16,class 
> CryptoPP::Weak1::MD5,0,0>::Init(void)"(?Init@?$IteratedHashWithStaticTransform@IU?$EnumToType@W4ByteOrder@CryptoPP@@$0A@@CryptoPP@@$0EA@$0BA@VMD5@Weak1@2@$0A@$0A@@CryptoPP@@MAEXXZ)
>  
> F:\INZ\Inżynierka\Inżynierka\Inżynierka.obj
>
> Error 1 error LNK2019: unresolved external symbol "public: static void 
> __cdecl CryptoPP::Weak1::MD5::Transform(unsigned int *,unsigned int const 
> *)" (?Transform@MD5@Weak1@CryptoPP@@SAXPAIPBI@Z) referenced in function 
> "protected: virtual void __thiscall 
> CryptoPP::IteratedHashWithStaticTransform<unsigned int,struct 
> CryptoPP::EnumToType<enum CryptoPP::ByteOrder,0>,64,16,class 
> CryptoPP::Weak1::MD5,0,0>::HashEndianCorrectedBlock(unsigned int const *)" 
> (?HashEndianCorrectedBlock@?$IteratedHashWithStaticTransform@IU?$EnumToType@W4ByteOrder@CryptoPP@@$0A@@CryptoPP@@$0EA@$0BA@VMD5@Weak1@2@$0A@$0A@@CryptoPP@@MAEXPBI@Z)
>  
> F:\INZ\Inżynierka\Inżynierka\Inżynierka.obj
>
> Any idea how to fix this?
>
> My project is set to /MTd, in additional directories i have "C:\Boost 
> Installation\cryptopp562\Win32\DLL_Output\Debug", and in additional 
> dependencies "cryptopp.lib" (that's what visual wanted).
>
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to