windows下编译boost库
基于boost库1.54 和vs2010
首先:大部分的库是不需要编译的
Most Boost libraries are header-only: they consist entirely of header files containing templates and inline functions, and require no separately-compiled library binaries or special treatment when linking.
其次,单独编译的库
The only Boost libraries that must be built separately are:(你可以添加你想编译的库使用--with-XXXX,注意库名全部是小写)
- Boost.Chrono
- Boost.Context
- Boost.Filesystem
- Boost.GraphParallel
- Boost.IOStreams
- Boost.Locale
- Boost.MPI
- Boost.ProgramOptions
- Boost.Python (see the Boost.Python build documentationbefore building and installing it)
- Boost.Regex
- Boost.Serialization
- Boost.Signals
- Boost.System
- Boost.Thread
- Boost.Timer
- Boost.Wave
过程:
1. Go to the directory of boost root
2. Run: bootstrap.bat
3. Run: b2 --toolset=msvc-10.0 --with-system --with-thread --with-date_time --with-regex --with-serialization
4. Add the linker library paths: boost root\stage\lib
posted on 2013-07-24 11:52 sunws_king 阅读(281) 评论(0) 编辑 收藏 举报