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

  • 相关阅读:
    .Net Standard(.Net Core)实现获取配置信息
    C# 自定义异常
    C# 表达式树Lambda扩展(四)
    C# 表达式树分页扩展(三)
    C# 表达式树遍历(二)
    C# 表达式树讲解(一)
    C#委托(delegate、Action、Func、predicate)和事件
    搭建Nuget服务器(Nuget私服)
    ORM之Dapper运用
    CentOS7 安装 redise redis-6.0.1
  • 原文地址:https://www.cnblogs.com/zxpo/p/5725298.html
Copyright © 2011-2022 走看看