下载Boost源码
地址:https://www.boost.org/users/history/version_1_72_0.html
指定安装位置
./bootstrap.sh --prefix=/usr/local/boost-1-72-0
编译release版本的boost库
./b2 toolset=gcc link=static runtime-link=static threading=multi
开始编译
sudo ./b2 install --prefix=/usr/local/boost-1-72-0
编译debug版本的boost库
./b2 toolset=gcc link=static runtime-link=static threading=multi
开始编译
标签:Ubuntu20.04,Boost,编译,static,72,b2,link,boost From: https://www.cnblogs.com/huangshiyi/p/17977132sudo ./b2 install --prefix=/usr/local/boost-1-72-0 --buildtype=complete