Windows构建Boost库

2023年10月15日 0 By Majjcom

首先下载确定版本的源码

解压后在目录下使用以下命令构建构建工具

bootstrap.bat --prefix=C:\boost_install

随后使用以下命令进行构建:

b2 install link=static runtime-link=static threading=multi variant=release/debug runtime-link=static --build-type=complete --prefix={PATH_TO_INSTALL} -j32
b2 install -j32 --prefix=G:\builds\boost\build\boost_1_59_0

内部的部分选项可使用b2 --help查看详细信息