0

我不知道在这里问这个问题是否正确。
我正在尝试在项目中使用 Crypto++ 库。我什至无法开始使用它。这是我正在尝试的代码:

#include <cryptlib.h>
#include <sha.h>

int main()
{
    SHA hash;  // ERROR here. can't find SHA
    return 0;
}

我尝试阅读下载包中包含的自述文件。我试过这个,但仍然没有设法让它工作。我正在使用VS2010。

4

1 回答 1

2

这里

NAMESPACE_BEGIN(CryptoPP)

class CRYPTOPP_DLL SHA : public ...

它似乎SHA是 namespace 的成员CryptoPP。尝试:

CryptoPP::SHA hash;
于 2012-03-28T15:03:20.467 回答