在vs2010下编译boost
来源:互联网 发布:mac运行32位软件 编辑:程序博客网 时间:2024/06/05 00:14
1. 解压缩后,运行bootstrap.bat批处理文件,得到bjam.exe;
2. 在vs2010下编译boost
boost最新版本已经支持vs2010,然而直接下载编译会发现一堆bug;
首先由bootstrap编译bjam的时候就会碰钉子,典型的错误就是:
Failed to build Boost.Jam build engine.
Please consult bjam.log for furter diagnostics.
查看bjam.log后可以发现里面的错误信息:
command.c : fatal error C1033: cannot open program database ''
Technorati 标签: boost,c++,编译,vs2010
这个问题在于一个vs编译环境。默认我们都直接进入cmd进行编译,在vs2010环境下这个是行不通的。
其次的错误就是通过bjam编译boost库的时候,会发现编译过程中出现很多fatal,很多库编译不成功;
解决办法: 在开始菜单中,Microsoft Visual Studio 2010\Visual Studio Tools下运行Visual Studio Command Prompt (2010),通过这个cmd进入boost的目录进行bjam的编译以及运行bjam编译boost;
搞定bjam后,在Visual Studio Command Prompt (2010)下直接运行:
bjam --toolset=msvc-10.0 --with-date_time --with-program_options --with-system --with-thread --with-filesystem --with-test --with-regex --with-crypto --with-serialization
然后就可以去喝咖啡了
具体编译参数详见:http://sswflying.spaces.live.com/blog/cns!A1AF9E41EDCAEF99!515.entry
2. 在vs2010下编译boost
boost最新版本已经支持vs2010,然而直接下载编译会发现一堆bug;
首先由bootstrap编译bjam的时候就会碰钉子,典型的错误就是:
Failed to build Boost.Jam build engine.
Please consult bjam.log for furter diagnostics.
查看bjam.log后可以发现里面的错误信息:
command.c : fatal error C1033: cannot open program database ''
Technorati 标签: boost,c++,编译,vs2010
这个问题在于一个vs编译环境。默认我们都直接进入cmd进行编译,在vs2010环境下这个是行不通的。
其次的错误就是通过bjam编译boost库的时候,会发现编译过程中出现很多fatal,很多库编译不成功;
解决办法: 在开始菜单中,Microsoft Visual Studio 2010\Visual Studio Tools下运行Visual Studio Command Prompt (2010),通过这个cmd进入boost的目录进行bjam的编译以及运行bjam编译boost;
搞定bjam后,在Visual Studio Command Prompt (2010)下直接运行:
bjam --toolset=msvc-10.0 --with-date_time --with-program_options --with-system --with-thread --with-filesystem --with-test --with-regex --with-crypto --with-serialization
然后就可以去喝咖啡了
具体编译参数详见:http://sswflying.spaces.live.com/blog/cns!A1AF9E41EDCAEF99!515.entry
0 0
- 在vs2010下编译boost
- 在vs2010下编译boost
- boost在VS2010下的编译
- VS2010下编译boost
- 关于Boost库在VS2010下的编译使用(转)
- 关于boost::property_tree在VS2010下编译的问题
- boost和STLport在vs2010环境下的编译
- 关于Boost库在VS2010下的编译使用(转)
- vs2010下编译安装boost
- vs2010下编译Boost 1.46
- vs2010下编译安装boost
- vs2010下编译使用boost
- windows下vs2010 编译、使用boost
- Boost在VS2010编译64bit版本
- Boost库的编译及在vs2010下的环境配置
- 在Windows下编译Boost
- boost在linux下编译
- 在vs2010下编译OpenSSL
- jquery mobile按钮
- HDU 4049
- 定时发邮件
- EF CodeFirst 级联删除
- .net简单的缓存类
- 在vs2010下编译boost
- 多线程执行多类型任务(线程通信wait/notify(notifyAll)):生产者消费者模型(二)
- spring中使用logback日志组件替换log4j
- Android中判断输入的字符串是否为数字,可以解决如输入为点出现的问题
- Android最新组件RecyclerView,替代ListView
- VS2010与mysql
- STL源码之实现一个简易的Vector容器
- Dongle烧写模块重构(四)--用工厂模式将方案商从功能代码中抽离
- servlet 学习二