boost 安装

来源:互联网 发布:股票首日上市价格算法 编辑:程序博客网 时间:2024/04/29 15:11

   最近开始学习boost库的使用,记录下boost的学习过程。

   学习的第一步进行boost库的安装。可以在官网下载boost库的压缩包。下载后解压进入到boost库目录,执行boostrap.sh脚本

  

  

  脚本运行完之后,ls可以查看多了b2bjam两个安装工具

   ubuntu@ubuntu-vm:/work/tool/boost_1_61_0$ ls
b2    boost            boostcpp.jam  boost.png      bootstrap.log  doc        index.html  Jamroot  LICENSE_1_0.txt  project-config.jam  status
bjam  boost-build.jam  boost.css     bootstrap.bat  bootstrap.sh   index.htm  INSTALL     libs     more             rst.css             tools


    然后使用sudo ./b2 install 命令安装头文件和库,安装的头文件在/usr/local/include,库在/usr/local/lib 目录下。
























 


1 0
原创粉丝点击