vs2013编译boost1.55.0 32/64位
2016-08-23 14:04
411 查看
在使用vs2013编译boost-1.55.0之前,先要给boost做下修改:
boost_1_55_0\boost\intrusive\detail\has_member_function_callable_with.hpp line:222
替换成以下内容:
32位编译:
从开始菜单启动Visual Studio 2013的vs2013 命令行,进入boost所在目录,运行bootstrap.bat
编译命令:
64位编译:
从开始菜单启动Visual Studio 2013的vs2013 x64兼容工具命令行,然后转到boost根文件夹,运行bootstrap.bat生成x64版的bjam.exe。
运行命令:
转发地址:http://www.cnblogs.com/flying_bat/p/3653189.html
boost_1_55_0\boost\intrusive\detail\has_member_function_callable_with.hpp line:222
template<class U> static BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME) <U> Test(BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<U>*);
替换成以下内容:
#ifdef BOOST_MSVC
template<class U>
static decltype(boost::move_detail::declval<Fun>().BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME()
, boost_intrusive_has_member_function_callable_with::yes_type())
Test(Fun*);
#else
template<class U> static BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME) <U> Test(BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<U>*);#endif
32位编译:
从开始菜单启动Visual Studio 2013的vs2013 命令行,进入boost所在目录,运行bootstrap.bat
编译命令:
bjam.exe stage --toolset=msvc-12.0 --without-graph --without-graph_parallel --without-math --without-mpi --without-serialization --without-wave --without-test --without-program_options --without-serialization --without-signals --stagedir=".\bin\vc12_x86" link=static runtime-link=shared threading=multi debug release
64位编译:
从开始菜单启动Visual Studio 2013的vs2013 x64兼容工具命令行,然后转到boost根文件夹,运行bootstrap.bat生成x64版的bjam.exe。
运行命令:
bjam.exe stage --toolset=msvc-12.0 --without-graph --without-graph_parallel --without-math --without-mpi --without-serialization --without-wave --without-test --without-program_options --without-serialization --without-signals --stagedir=".\bin\vc12_x64" link=static runtime-link=shared threading=multi debug release address-model=64
转发地址:http://www.cnblogs.com/flying_bat/p/3653189.html
相关文章推荐
- 数据库的安全特性检查
- 【Java面试题目-2016-08-23】多线程合并文件
- 垂直居中-父元素高度确定的多行文本
- SAX解析xml characters方法要注意的问题
- 让你的Entity实现自动装配的功能,swing也玩form表单赋值
- 专题1-MMU-lesson3-MMU配置与使用
- 2016年读书清单
- CSS padding margin border属性详解
- Android状态栏微技巧,带你真正理解沉浸式模式
- 安装Klocwork时报缺少 ld-linux.so.2 如何解决
- VC_ADO连接SQLSERVER时连接字符串的模式
- 在单链表的第i个位置插入一个新结点
- 静态代码检查工具-PMD
- 保存照片和视频到相册显示
- 重新开始学习javase_集合_Set
- Unsupported major.minor version 52.0
- Java后端WebSocket的Tomcat实现
- C#实现模拟登录百度并发送私信
- 架构设计 系统存储
- 敏捷开发介绍以及xp和scrum