安装:先执行根目录下的.bat文件;(注意安装编译工具)
b2.exe install --prefix="F:\Boost\x64" --build-type=complete --toolset=msvc-14.2 threading=multi --build-type=complete address-model=64
b2.exe install --prefix="F:\Boost\x86" --build-type=complete --toolset=msvc-14.2 threading=multi --build-type=complete address-model=32
推荐:
bjam.exe --toolset=msvc-14.1 architecture=x86 address-model=64 link=static --build-type=complete --with-system --with-thread --with-date_time --with-filesystem --with-serialization
添加依赖库:
VC++目录: 包含目录: boost1.70 库目录: 170/stage/lib;
或可以新建一个系统环境变量BOOST_DIR,值为E:\program\boost_1_70_0。
在path系统环境变量中添加:%BOOST_DIR%;
VC++包含目录中添加: %BOOST_DIR%;
VC++库目录中添加: %BOOST_DIR%\stage\lib;
用ASIO:
bjam --with-system --with-regex stage