zoukankan      html  css  js  c++  java
  • centos下boost1.59 编译和安装(转)

    解压

    tar zxvf ./boost_1_59_0.tar.bz2    
    进入目录后,执行
    ./bootstrap.sh --with-libraries=system,filesystem,log,thread --with-toolset=gcc 
    ./b2 toolset=gcc cxxflags="-std=c++11"  
    备注:上面红色字体的你容,可以再配置后,看到其他的选项。上面绿色字体内容代表使用c++11标准,编译的库要使用统一标准。不使用,去掉绿色字体内容。

     

    稍等一会,编译成功。安装吧。
    ./b2 install --prefix=/usr 
    运行./b2 install 命令,默认安装在

    /usr/local/lib目录下

    头文件在

    /usr/local/include/boost目录下

    install 后面可以加参数--prefix=/usr 

     

    Component configuration:

        - atomic                   : not building
        - chrono                   : not building
        - context                  : not building
        - coroutine                : not building
        - date_time                : not building
        - exception                : not building
        - filesystem               : building
        - graph                    : not building
        - graph_parallel           : not building
        - iostreams                : not building
        - locale                   : not building
        - log                      : building
        - math                     : not building
        - mpi                      : not building
        - program_options          : not building
        - python                   : not building
        - random                   : not building
        - regex                    : not building
        - serialization            : not building
        - signals                  : not building
        - system                   : building
        - test                     : not building
        - thread                   : building
        - timer                    : not building
        - wave                     : not building


    ————————————————
    版权声明:本文为CSDN博主「悊子」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/hzdiy/article/details/18888477

  • 相关阅读:
    HDOJ1003 MaxSum【逆推】
    HDOJ1698 Just a hook【线段树成段更新lazy标志】武科大ACM暑期集训队选拔赛4题
    HDOJ1102 Constructing Roads【最小生成树】武科大ACM暑期集训队选拔赛1题
    POJ2828 Buy Tickets【线段树,逆序遍历】
    HDOJ1215 ( 七夕节 )【居然还可以这么解~】
    HDOJ1089HDOJ1096【格式练习】
    HDOJ1233 ( 还是畅通工程 ) 【最小生成树,kruscal】
    HDOJ1035 ( Robot Motion ) 【递归】
    POJ3468 A Simple Problem with Integers【线段树 成段更新+求和 lazy标志】
    HDOJ1216 Assistance Required【打表】武科大ACM暑期集训队选拔赛7题
  • 原文地址:https://www.cnblogs.com/spruce/p/12097180.html
Copyright © 2011-2022 走看看