Boost 17 03庫的編譯vs2019

2021-10-17 21:21:25 字數 851 閱讀 5905

編譯靜態庫

生成x86的指令碼**

b2.exe install --prefix="d:\temporary\test\boost\boost_1_75_0\x86" --build-type=complete --toolset=msvc-14.2 threading=multi --build-type=complete address-model=32

生成x64的指令碼**

b2.exe install --prefix="d:\temporary\test\boost\boost_1_75_0\x64" --build-type=complete --toolset=msvc-14.2 threading=multi --build-type=complete address-model=64

或直接b2.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

1. 解壓最新的boost庫**

2. 在命令列視窗中執行bootstrap.bat等待生成b2.exe

3. 執行b2.exe stage --toolset=msvc --stagedir="d:\boost\out\bin" link=static threading=multi runtime-link=static --build-type=complete –-build-dir="d:\boost\out\build" 

4. 輸出結果包含最新32和64的靜態庫

vs2017下boost庫編譯

編譯 以用tribool 庫 hpp是boost庫獨特檔案,它把c 類的宣告和實現都放在乙個檔案中,也就是 h cpp 所以檔案字尾是 hpp 剩下的少量庫 如 chrono,date time,program options,test,thread等 必須編譯成靜態庫或者動態庫,並在構建時指定連線...

VS2008下Boost庫的安裝編譯

或下拉 庫檔案 加上d boost lib 下拉 包含檔案 加上d boost include boost 1 55 這樣基本已經完成了!注意 如果發現libboost regex vc80 mt gd 1 34 1.lib之類檔案提示錯誤時,是找不到該檔案 就到d boost lib把對應的檔案l...

VS2017 編譯64位boost靜態庫

1 開啟vs自帶的本地命令列工具,cd到boost庫根目錄 然後輸入 bootstrap.bat 2 開啟與bootstrap.bat同級的目錄中project config.jam檔案把內容替換成下面這樣的形式 import option using msvc 14.0 c program fil...