boost 安装

    xiaoxiao2025-04-08  13

       最近开始学习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 目录下。

     

    
    转载请注明原文地址: https://ju.6miu.com/read-1297860.html
    最新回复(0)