On Monday, April 30, 2018 at 11:47:26 AM UTC-4, darrin donahue wrote: > > The interesting thing is that I can successfully compile and run with the > crypto.lib and include these header files in a cpp file: > > #include "modes.h" > #include "aes.h" > #include "filters.h" > > and this code: > byte key[CryptoPP::AES::MAX_KEYLENGTH]; // 32 bytes > byte iv[CryptoPP::AES::BLOCKSIZE]; > > but as soon as I add this line, I get all those errors: > > CryptoPP::AES::Encryption aesEncryption(key, CryptoPP::AES::MAX_KEYLENGTH); >
If you are using dynamic C++ runtime linking for Crypto++, then maybe one of your other libraries is still using static linking. The idea is all libraries must use the same linking, including dicore_d.lib. Usually that means Crypto++ must be changed to use dynamic C++ runtime linking, but it depends on your project. Jeff -- You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users. --- 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.
