1. 程式人生 > >boost學習筆記(windows+vs2017+boost1.67 64位編譯)

boost學習筆記(windows+vs2017+boost1.67 64位編譯)

環境:windows10+vs2017+boost1_67 64位

boost下載

安裝

執行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 》新增依賴的庫名稱