I have some problems integrating CryptoPP in Visual Studio. I've followed some tutorials without success, and when I try to compile the project I get hundreads of errors.
What I did:
- I builded cryptlib with both debug and release configurations, generating the cryptlib.lib files
- I added the dependencies to the .lib files that I've just generated
- I added the paths to the .h files
When compiling my project, I get more than 100 errors of the type LNKxxxx, I don't know if I did something wrong while compiling the libraries, or if I miss something, but I'm completely stuck.
--- EDIT --- As requested, here are some of the errors I get
Error LNK2038 mismatch detected for 'RuntimeLibrary': the value 'MTd_StaticDebug' does not match the value 'MDd_DynamicDebug' in pwmc.obj pwmc C:\Users\aless\Documents\C\pwm\pwmc\pwmc\cryptlib.lib(rijndael.obj) 1
Error LNK2005 "protected: __cdecl std::basic_streambuf<char,struct std::char_traits >::basic_streambuf<char,struct std::char_traits >(void)" (??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ) already defined in cryptlib.lib(cryptlib.obj) pwmc C:\Users\aless\Documents\C\pwm\pwmc\pwmc\msvcprtd.lib(MSVCP140D.dll) 1
Error LNK2005 "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(bool)" (?_Init@locale@std@@CAPEAV_Locimp@12@_N@Z) already defined in msvcprtd.lib(MSVCP140D.dll) pwmc C:\Users\aless\Documents\C\pwm\pwmc\pwmc\libcpmtd.lib(locale0.obj) 1
Since my Visual Studio is not in english I translated the errors myself, but I don't know the exact/correct translation, I hope that is clear enough anyway.
Thanks in advance to everyone.
PS I don't think my code is the problem, to test if all were working i used this sample code