当前位置:编程学习 > C/C++ >>

解决boost包含boost/algorithm/string.hpp造成的__int64错误

使用boost的string库进行跨平台操作,包含文件

#include <boost/algorithm/string.hpp>

 

结果遇到编译错误

error C2632: '__int64' followed by '__int64' is illegal

发现在config-win32.h已经定义过宏,在boost\cstdint.hpp又使用了一次typedef, 因此将包含修改为:

#undef int64_t
    #include <boost/algorithm/string.hpp>

 

问题解决

补充:软件开发 , C语言 ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,