boost大部分庫只需要包含頭文件即可使用,而有部分需要編譯的,如下:
bjam --show-libraries
The following libraries require building:
- atomic
- chrono
- container
- context
- coroutine
- date_time
- exception
- filesystem
- graph
- graph_parallel
- iostreams
- locale
- log
- math
- mpi
- program_options
- python
- random
- regex
- serialization
- signals
- system
- test
- thread
- timer
- wave
需要打開vs的命令行工具來執行bootstrap.bat,生成b2.exe,如果要編譯64位的boost,則需要打開x64的命令行工具,以生成64位的b2.exe,然後在選項中加上address-model=64。
另外toolset的值,
vs15 – msvc-14.0
vs13 – msvc-12.0
等等。