boost学习笔记(windows+vs2017+boost1.67 64位编译)

环境:windows10+vs2017+boost1_67 64位

boost下载

下载地址:https://dl.bintray.com/boostorg/release/1.67.0/binaries/
找到boost_1_67_0-msvc-14.1-64.exe并下载

安装

执行boost_1_67_0-msvc-14.1-64.exe,选择安装目录进行安装

编译

进入boost安装目录,执行bootstrap.bat,稍等几分钟,会生成bjam.exe文件。
然后打开vs2017 64位命令行,在开始菜单中的vs2017下。进入boost目录,执行下面命令:

bjam stage --toolset=msvc-14.1 architecture=x86 address-model=64 --without-graph --without-graph_parallel --stagedir="D:\local\boost_1_67_0\bin\vc141-x64" link=static runtime-link=shared runtime-link=static threading=multi debug release  

等待很长的时间之后。

配置vs

右键项目 》属性 》C/C++ 》Addtional Include Directories 》添加boost目录
右键项目 》属性 》Linker 》General 》Addtional Library Directories 》添加boost下编译好的lib目录
右键项目 》属性 》Linker 》Input 》Addtional Dependencies 》添加依赖的库名称

猜你喜欢

转载自blog.csdn.net/maosijunzi/article/details/80750307
今日推荐