[英]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. 我正在开发一个使用CryptoPP的项目,但是当我尝试编译我的代码时,总是会出现链接问题。 Now I wanted to ask here If someone knows howto Link it Correctly. 现在,我想在这里问是否有人知道如何正确链接它。
I already tried: 我已经尝试过:
Building cryptlib 构建cryptlib
Moving the cryptlib.lib to my project folder 将cryptlib.lib移动到我的项目文件夹
I expect my project to fully compile and link, without errors and being able to run some AES just for testing. 我希望我的项目能够完全编译和链接,而不会出错,并且能够运行一些AES进行测试。
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. 最好的方法是在项目文件夹(.SLN所在的文件夹)内创建一个名为cryptopp的文件夹,或者从该目录内的cryptopp下载源。
From [Visual Studio->Solution Explorer]
click on [Solution->Add->Existing Project]
and select the cryptlib.vcproj
file to include in your solution. 从[Visual Studio->Solution Explorer]
单击[Solution->Add->Existing Project]
然后选择要包含在解决方案中的cryptlib.vcproj
文件。
You can find an example of a project using cryptopp here https://github.com/mrc-g/BitMRC 您可以在这里找到使用cryptopp的项目示例https://github.com/mrc-g/BitMRC
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.