如何解决ase库的algparam.h(322): error C2061错误
来源:互联网 发布:语音朗读小说软件 编辑:程序博客网 时间:2024/05/24 06:24
在使用ase库的时候我遇到了一个编译错误,错误如下:
>e:\work\driverexam\include\aes\algparam.h(322): error C2061: 语法错误: 标识符“buffer”1> e:\work\driverexam\include\aes\algparam.h(321): 编译类 模板 成员函数“void CryptoPP::AlgorithmParametersTemplate<T>::MoveInto(void *) const”时1> with1> [1> T=bool1> ]1> e:\work\driverexam\include\aes\algparam.h(329): 参见对正在编译的类 模板 实例化“CryptoPP::AlgorithmParametersTemplate<T>”的引用1> with1> [1> T=bool1> ]1>1>生成失败。
在谷歌上查询发现是调试器在调试的时候使用了new关键字参考网址:http://stackoverflow.com/questions/15203562/crypto-giving-a-compiler-error-in-algparam-h
解决方法:在包含头文件的时候添加如下的宏就可以了。
#pragma push_macro("new")#undef new#include "AESCryptor.h"#pragma pop_macro("new")#include <string>using namespace std;void CaseLibTestDlg::OnBnClickedButton1(){// TODO: 在此添加控件通知处理程序代码AESCryptor tt;string plain ="hello";string en = tt.Encrypt(plain);string p = tt.Decrypt(en);}
0 0
- 如何解决ase库的algparam.h(322): error C2061错误
- atlbase.h error C2061解决
- error C2061: 语法错误 : 标识符“_Wherenode” 的错误
- error C2375 重定义错误的解决方式,Winsock2.h
- VS2010中的编译错误:error C2061: 语法错误: 标识符"string"
- VS 报cmath(19): error C2061: 语法错误: 标识符“acosf” 错误
- error C2061 && error C4430
- ASE 进程为send sleep如何解决
- 如何解决关于函数timeGetTime出现的error LNK2019错误
- vs2010 库函数问题:objidl.h(11266) : error C2061: syntax error : identifier '__RPC__out_xcount_part'
- vs2010 库函数问题:objidl.h(11266) : error C2061: syntax error : identifier '__RPC__out_xcount_part'
- vs2010 库函数问题:objidl.h(11266) : error C2061: syntax error : identifier '__RPC__out_xcount_part'
- cocos2d-x error C2061
- error C2061:语法错误
- VS2010:error C2061: 语法错误
- Error C2061:语法错误
- Linux 下的错误 error.h
- Python3.0及以上 fatal error: Python.h: 错误解决
- 给菜鸟看的Android应用开发全流程
- 构架高性能WEB网站的几点知识
- 为什么你参加了许多的互联网营销方面的培训还是很难赚到钱
- 升级10.10 Yosemite 后,cocoapods 出现错误(解决方案)
- MFC 将文件拖进对话框获得文件信息
- 如何解决ase库的algparam.h(322): error C2061错误
- 把各种格式图片转换成PDF的方法
- 在tomcat6.5+上配置虚拟主机
- html 实现模糊效果
- xcode 不能安装调试
- HDU_4704_Sum_隔板原理、二项式定理、同余定理、费马小定理、快速幂
- BASE32编码--记录
- maven批处理命令
- java 包冲突解决方法