在网上找了不少资料,发现说的都比较笼统,我简明一下,呵呵,大家不要在编译过程中重复浪费时间哈。
针对windows用户VS编译
一:先编译bjam程序
启动命令行进入../boost_1_36_0/tools/build/jam_src目录
The following libraries require building:
- date_time
- filesystem
- function_types
- graph
- iostreams
- math
- mpi
- program
_options
- python
- regex
- serialization
- signals
- system
- test
- thread
- wave
这里列出的是所有需要编译的boost模块,我们只需要选择自己需要的就OK
例如我只需要 regex 调试版,正则表达式那一个我就输入
bjam install --toolset=msvc --prefix="F:/boost_1_36_0" debug --with-regex
例如我只需要 regex 发型版,正则表达式那一个我就输入
bjam install --toolset=msvc --prefix="F:/boost_1_36_0" release --with-regex
喝杯咖啡就完事lib文件夹下,哇,出现了
本文提供了一个简洁明了的Boost库编译指南,适用于Windows平台使用Visual Studio的开发者。首先介绍了如何编译获得bjam工具,随后详细说明了利用bjam进行Boost库编译的具体步骤,包括指定编译选项和目标模块。
2960

被折叠的 条评论
为什么被折叠?



