C++ 开始使用Crypto++;
我不知道在这里问这个问题是否正确。C++ 开始使用Crypto++;,c++,visual-studio,visual-studio-2010,crypto++,C++,Visual Studio,Visual Studio 2010,Crypto++,我不知道在这里问这个问题是否正确。 我试图在一个项目中使用Crypto++库。我甚至不能开始。这是我正在尝试的代码: #include <cryptlib.h> #include <sha.h> int main() { SHA hash; // ERROR here. can't find SHA return 0; } #包括 #包括 int main() { SHA哈希;//此处出错。找不到SHA 返回0; } 我试着阅读下载包中包含的自述文
我试图在一个项目中使用Crypto++库。我甚至不能开始。这是我正在尝试的代码:
#include <cryptlib.h>
#include <sha.h>
int main()
{
SHA hash; // ERROR here. can't find SHA
return 0;
}
#包括
#包括
int main()
{
SHA哈希;//此处出错。找不到SHA
返回0;
}
我试着阅读下载包中包含的自述文件。我试过了,但还是没能成功。我正在使用VS2010。来自:
似乎SHA
是命名空间CryptoPP
的成员。尝试:
CryptoPP::SHA hash;
谢谢要么是因为我以前从未使用过库,要么就是这个库的文档太差了。
CryptoPP::SHA hash;