在网上看到包装Crypto++5.51的例子,但是调试WIN32的EXE时发现如下错误:1>e:\lesson\cryptopp32_project\cryptopp32_project\testcryptopp32\testcryptopp32.cpp(24) : error C2039: “RSAES_PKCS_GenerateKeys”: 不是“CryptoPP32”的成员
1>e:\lesson\cryptopp32_project\cryptopp32_project\testcryptopp32\testcryptopp32.cpp(24) : error C3861: “RSAES_PKCS_GenerateKeys”: 找不到标识符
1>e:\lesson\cryptopp32_project\cryptopp32_project\testcryptopp32\testcryptopp32.cpp(29) : error C2039: “RSAES_PKCS_GenerateKeys”: 不是“CryptoPP32”的成员
1>e:\lesson\cryptopp32_project\cryptopp32_project\testcryptopp32\testcryptopp32.cpp(29) : error C3861: “RSAES_PKCS_GenerateKeys”: 找不到标识符
1>e:\lesson\cryptopp32_project\cryptopp32_project\testcryptopp32\testcryptopp32.cpp(33) : error C2665: “CryptoPP32::RSAES_PKCS_EncryptString”: 2 个重载中没有一个可以转换所有参数类型
1> e:\lesson\cryptopp32_project\cryptopp32_project\cryptopp32_dll\cryptopp32.h(50): 可能是“bool CryptoPP32::RSAES_PKCS_EncryptString(const char *,const char *,char **,const char *)”
1> 试图匹配参数列表“(const char [14], const char [12], std::string, const char [26])”时
1>e:\lesson\cryptopp32_project\cryptopp32_project\testcryptopp32\testcryptopp32.cpp(37) : error C2665: “CryptoPP32::RSAES_PKCS_DecryptString”: 2 个重载中没有一个可以转换所有参数类型
1> e:\lesson\cryptopp32_project\cryptopp32_project\cryptopp32_dll\cryptopp32.h(54): 可能是“bool CryptoPP32::RSAES_PKCS_DecryptString(const char *,const char *,char **)”
1> 试图匹配参数列表“(const char [15], const char *, std::string)”时
1>e:\lesson\cryptopp32_project\cryptopp32_project\testcryptopp32\testcryptopp32.cpp(41) : error C2665: “CryptoPP32::RSAES_PKCS_EncryptString”: 2 个重载中没有一个可以转换所有参数类型
1> e:\lesson\cryptopp32_project\cryptopp32_project\cryptopp32_dll\cryptopp32.h(50): 可能是“bool CryptoPP32::RSAES_PKCS_EncryptString(const char *,const char *,char **,const char *)”
1> 试图匹配参数列表“(std::string, const char [4], std::string)”时
1>e:\lesson\cryptopp32_project\cryptopp32_project\testcryptopp32\testcryptopp32.cpp(45) : error C2665: “CryptoPP32::RSAES_PKCS_DecryptString”: 2 个重载中没有一个可以转换所有参数类型
1> e:\lesson\cryptopp32_project\cryptopp32_project\cryptopp32_dll\cryptopp32.h(54): 可能是“bool CryptoPP32::RSAES_PKCS_DecryptString(const char *,const char *,char **)”
1> 试图匹配参数列表“(std::string, const char *, std::string)”时
1>e:\lesson\cryptopp32_project\cryptopp32_project\testcryptopp32\testcryptopp32.cpp(60) : error C2665: “CryptoPP32::RSAES_PKCS_EncryptString”: 2 个重载中没有一个可以转换所有参数类型
1> e:\lesson\cryptopp32_project\cryptopp32_project\cryptopp32_dll\cryptopp32.h(50): 可能是“bool CryptoPP32::RSAES_PKCS_EncryptString(const char *,const char *,char **,const char *)”
1> 试图匹配参数列表“(char [130], char [7], const char [5], std::string)”时
1>e:\lesson\cryptopp32_project\cryptopp32_project\testcryptopp32\testcryptopp32.cpp(62) : error C2665: “CryptoPP32::RSAES_PKCS_DecryptString”: 2 个重载中没有一个可以转换所有参数类型
1> e:\lesson\cryptopp32_project\cryptopp32_project\cryptopp32_dll\cryptopp32.h(55): 可能是“bool CryptoPP32::RSAES_PKCS_DecryptString(const char *,const char *,const char *,const char *,const char *,const char *,const char *,const char *,const char *,char **)”
1> 试图匹配参数列表“(char [130], char [7], char [130], char [66], char [66], char [66], char [66], char [66], const char *, std::string)”时还有一个问题,我以静态LIB形式编译完成包装后的LIB,居然只有1M多,但未经包装编译成的LIB怎么会有30余M,是不是没有将算法包装完啊,所以,特别想求一个5.6版的完整包装程序。

解决方案 »

  1.   

    我再检查下,还有一问,就是LIB的体积怎么缩水了?
      

  2.   

    头文件加了没?响应的lib库文件加了没???
      

  3.   


    LZ是否按照CryptoPP的配置要求对VC进行配置了??
      

  4.   

    按照要求配置了的。
    工程的下载地址,请高手矿帮帮。
    http://dldx.csdn.net/fd.php?i=88233980658425&s=8f24f34861adcb8ecba776838013f4e7
      

  5.   

    哪了里有讲解CryptoPP的书籍或电子书啊,谢谢了.