Did you use the pre-compiled DLL from the Crypto++ website, or did you re-compile it yourself? If you used the pre-compiled version, it wouldn't work because that DLL can only be called by an application that is compiled with MSVC .NET 2003. (Did you miss the note on the website about this?)
Unless you need FIPS validation, I suggest that you download version 5.4 and compile the DLL yourself with MSVC .NET 2005. If you do need FIPS validation, then either switch to MSVC .NET 2003, or wait a few months for version 5.3 (which will be for MSVC 2005) to finish its FIPS validation. ----- Original Message ----- From: "cleohm" <[EMAIL PROTECTED]> To: "Crypto++ Users" <[EMAIL PROTECTED]> Sent: Saturday, January 27, 2007 10:47 AM Subject: LNK2001 CryptoPP::g_nullNameValuePairs Unresolved Error > > Hi all, > > I am currently working on the RSA Encryption function using Crypto++ > 5.2.3 library compiled in VS2005. Also, my workspace is of the MFC DLL > type. The following is my code implementation: > > RSAES_OAEP_SHA_Decryptor pub; > // generate pub > AutoSeedRandomPool rng; > // generate random > pub.Encrypt(rng, (byte *)message, strlen(message), (byte *)outstr); > > The compilation errors from VS2005 are: > > Error LNK2001: Unresolved external symbol "class > CryptoPP::NullNameValuePairs const CryptoPP:g_nullNameValuePairs" > Fatal Error LNL 1120: 1 unresolved externals > > I have also configured my project to look for the related Crypto++ > 5.2.3 header files, cryptopp.dll and cryptopp.lib. In addition, I have > add the namespace for CryptoPP. > > Anyone has any idea where I have gone wrong? > > > Regards > > cleohm > > > > --~--~---------~--~----~------------~-------~--~----~ 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. -~----------~----~----~----~------~----~------~--~---
