zoukankan      html  css  js  c++  java
  • boost_1.61.0编译安装

    1、下载源码boost_1_61_0.zip

    2、进入目录 C:Program Files (x86)Microsoft Visual Studio 12.0Common7ToolsShortcutsVS2013 x86 Native Tools Command Prompt

    3、进入目录 boost_1_61_0执行bootstrap

    4、

    If you wish to build from source with Visual C++, you can use a simple build procedure described in this section.

    Open the command prompt and change your current directory to the Boost root directory. Then, type the following commands:

    bootstrap
    .2

    The first command prepares the Boost.Build system for use.

    The second command invokes Boost.Build to build the separately-compiled Boost libraries. Please consult the Boost.Build documentation for a list of allowed options.

    使用下面的编译选项生成动态库:

    boost_1_61_0>b2 --build-dir=boost-build --build-type=complete --stage
    dir=boost-output variant=debug,release link=shared threading=multi address-model
    =32 toolset=msvc-12.0 runtime-link=shared --with-thread

    使用下面的编译选项生成静态库:
    boost_1_61_0>b2 --build-dir=boost-build --build-type=complete --stage
    dir=boost-output variant=debug,release link=static threading=multi address-model
    =32 toolset=msvc-12.0 runtime-link=shared --with-thread

    boost:
    ....oost_1_61_0oost-outputlib

    b2 --show-libraries,可查看所有必须编译才能使用的库
    --with-thread
    libboost_thread-vc120-mt-1_61.lib
    libboost_chrono-vc120-mt-1_61.lib
    libboost_system-vc120-mt-1_61.lib

    --with-date_time
    libboost_date_time-vc120-mt-1_61.lib

    --with-regex

  • 相关阅读:
    忙活了半宿,写了个小玩意
    luogu P5171 Earthquake
    luogu P1850 换教室
    luogu P2507 [SCOI2008]配对 |动态规划
    luogu P3830 [SHOI2012]随机树
    luogu P3959 宝藏
    牛客竞赛-比赛
    牛客竞赛-Who killed Cock Robin
    luogu P3807 【模板】卢卡斯定理
    牛客竞赛 -被3整除的子序列
  • 原文地址:https://www.cnblogs.com/zxpo/p/5725298.html
Copyright © 2011-2022 走看看