战魂小筑

讨论群:309800774 知乎关注:http://zhihu.com/people/sunicdavy 开源项目:https://github.com/davyxu

   :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  257 随笔 :: 0 文章 :: 506 评论 :: 0 Trackbacks

使用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>

 

问题解决

posted on 2011-12-01 16:48 战魂小筑 阅读(4976) 评论(0)  编辑 收藏 引用 所属分类: 网络 服务器技术C++/ 编程语言

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理