简体   繁体   中英

How to include Crypto++ into a VS Project

I'm working on a Project that utilizes CryptoPP, but I always get Linking Issues when I try to Compile my Code. Now I wanted to ask here If someone knows howto Link it Correctly.

I already tried:

  • Downloading Crypto++
  • Opening the SLN
  • Building cryptlib

  • Moving the cryptlib.lib to my project folder

  • Including the Crypto++ header into my project
  • Adding the cryptlib.lib to the header files.

I expect my project to fully compile and link, without errors and being able to run some AES just for testing.

The best way is to create a folder named cryptopp inside your project folder (where the .SLN is located) clone or download the source from cryptopp inside the directory.

From [Visual Studio->Solution Explorer] click on [Solution->Add->Existing Project] and select the cryptlib.vcproj file to include in your solution.

You can find an example of a project using cryptopp here https://github.com/mrc-g/BitMRC

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM