设为首页 加入收藏

TOP

解决boost包含boost/algorithm/string.hpp造成的__int64错误
2014-11-24 00:11:55 来源: 作者: 【 】 浏览:19
Tags:解决 boost 包含 boost/algorithm/string.hpp 造成 __int64 错误

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

#include

结果遇到编译错误

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

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

#undef int64_t

#include

问题解决

摘自 战魂小筑

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇写binder客户端与服务端碰到的编.. 下一篇函数指针模板

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: