<small id='7a7of'></small><noframes id='7a7of'>

  • <tfoot id='7a7of'></tfoot>
    <legend id='7a7of'><style id='7a7of'><dir id='7a7of'><q id='7a7of'></q></dir></style></legend>

      1. <i id='7a7of'><tr id='7a7of'><dt id='7a7of'><q id='7a7of'><span id='7a7of'><b id='7a7of'><form id='7a7of'><ins id='7a7of'></ins><ul id='7a7of'></ul><sub id='7a7of'></sub></form><legend id='7a7of'></legend><bdo id='7a7of'><pre id='7a7of'><center id='7a7of'></center></pre></bdo></b><th id='7a7of'></th></span></q></dt></tr></i><div id='7a7of'><tfoot id='7a7of'></tfoot><dl id='7a7of'><fieldset id='7a7of'></fieldset></dl></div>

          <bdo id='7a7of'></bdo><ul id='7a7of'></ul>

        如何在 64 位中构建 Boost 1.64?

        How to build Boost 1.64 in 64 bits?(如何在 64 位中构建 Boost 1.64?)
      2. <legend id='IcLgO'><style id='IcLgO'><dir id='IcLgO'><q id='IcLgO'></q></dir></style></legend>
          <bdo id='IcLgO'></bdo><ul id='IcLgO'></ul>
            <tbody id='IcLgO'></tbody>
        • <tfoot id='IcLgO'></tfoot>

              1. <i id='IcLgO'><tr id='IcLgO'><dt id='IcLgO'><q id='IcLgO'><span id='IcLgO'><b id='IcLgO'><form id='IcLgO'><ins id='IcLgO'></ins><ul id='IcLgO'></ul><sub id='IcLgO'></sub></form><legend id='IcLgO'></legend><bdo id='IcLgO'><pre id='IcLgO'><center id='IcLgO'></center></pre></bdo></b><th id='IcLgO'></th></span></q></dt></tr></i><div id='IcLgO'><tfoot id='IcLgO'></tfoot><dl id='IcLgO'><fieldset id='IcLgO'></fieldset></dl></div>
              2. <small id='IcLgO'></small><noframes id='IcLgO'>

                • 本文介绍了如何在 64 位中构建 Boost 1.64?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我运行的是 Windows 10,并在我的笔记本电脑中安装了 Visual Studio 2017 Community Edition.我有一些较旧的程序在 VS 2015 中使用 64 位 Boost 1.62.0 编译得很好.由于一些非常奇怪的原因,我找不到一种方法来编译 Boost 1.64.0(这里是文件系统和计时器)中的任何库,使用 VS 2017 和这个命令行:

                  <块引用>

                  b2 --build-dir=..uild_here --with-filesystem --with-timer --address-model=64

                  将执行命令并构建库,但以 32 位为单位!!

                  可能出了什么问题?

                  问候,胡安·丹特

                  解决方案

                  更新我给出的答案 此处.Visual Studio 2017 是一个新的工具集,因此只需将 toolset=msvc-14.0(对于 Visual Studio 2015)替换为 toolset=msvc-14.1 即:

                  在 Visual Studio 工具命令提示符中:

                  cd boost_1_64_0调用 bootstrap.bat

                  对于静态库(推荐用于 Windows):

                  b2 -j8 toolset=msvc-14.1 address-model=64 architecture=x86 link=static threading=multi runtime-link=shared --build-type=complete stage

                  注意:线程必须使用动态链接构建,参见:https://studiofreya.com/2015/05/20/the-simplest-way-of-building-boost-1-58-for-32-bit-and-64-bit-architectures-with-visual-studio/

                  在动态库中构建线程:

                  b2 -j8 toolset=msvc-14.1 address-model=64 architecture=x86 link=shared threading=multi runtime-link=shared --with-thread --build-type=minimal stage

                  <块引用>

                  注意:Visual Studio 2017 的正确 b2 工具集是 msvc-14.1 not msvc-15.0
                  Visual Studio 2019b2 工具集是 msvc-14.2.
                  如果有疑问(并且您只安装了一个版本的 Visual Studio),只需使用 toolset=msvc.

                  I am running Windows 10 and have Visual Studio 2017 Community Edition installed in my laptop. I have some older programs that compiled fine in VS 2015 with Boost 1.62.0 in 64 bits. For some very strange reason, I cannot find a way to compile say any library from Boost 1.64.0 (here filesystem and timer) using VS 2017 with this command line:

                  b2 --build-dir=..uild_here --with-filesystem --with-timer --address-model=64

                  The command will execute and the libraries will be built, but in 32 bits!!

                  What could be going wrong?

                  Regards, Juan Dent

                  解决方案

                  To update the answer I gave here. Visual Studio 2017 is a new toolset, so simply replace toolset=msvc-14.0 (for Visual Studio 2015) with toolset=msvc-14.1 i.e.:

                  In a Visual Studio tools Command Prompt:

                  cd boost_1_64_0
                  call bootstrap.bat
                  

                  For static libraries (recommended for Windows):

                  b2 -j8 toolset=msvc-14.1 address-model=64 architecture=x86 link=static threading=multi runtime-link=shared --build-type=complete stage
                  

                  Note: thread must be built with dynamic linking see: https://studiofreya.com/2015/05/20/the-simplest-way-of-building-boost-1-58-for-32-bit-and-64-bit-architectures-with-visual-studio/

                  To build thread in a dynamic library:

                  b2 -j8 toolset=msvc-14.1 address-model=64 architecture=x86 link=shared threading=multi runtime-link=shared --with-thread --build-type=minimal stage
                  

                  Note: the correct b2 toolset for Visual Studio 2017 is msvc-14.1 not msvc-15.0 and
                  the b2 toolset for Visual Studio 2019 is msvc-14.2.
                  If in doubt (and you've only one version of Visual Studio installed) just use toolset=msvc.

                  这篇关于如何在 64 位中构建 Boost 1.64?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to limit the number of running instances in C++(C++中如何限制运行实例的数量)
                  Using boost::asio::async_read with stdin?(将 boost::asio::async_read 与 stdin 一起使用?)
                  How to find out what dependencies (i.e other Boost libraries) a particular Boost library requires?(如何找出特定 Boost 库需要哪些依赖项(即其他 Boost 库)?)
                  What#39;s the purpose of a leading quot;::quot; in a C++ method call(引导“::的目的是什么?在 C++ 方法调用中)
                  Boost Spirit x3: parse into structs(Boost Spirit x3:解析为结构体)
                  How boost auto-linking makes choice?(boost自动链接如何做出选择?)

                    <tbody id='TQP5S'></tbody>
                    <bdo id='TQP5S'></bdo><ul id='TQP5S'></ul>
                    <tfoot id='TQP5S'></tfoot>
                    <legend id='TQP5S'><style id='TQP5S'><dir id='TQP5S'><q id='TQP5S'></q></dir></style></legend>

                      <small id='TQP5S'></small><noframes id='TQP5S'>

                      <i id='TQP5S'><tr id='TQP5S'><dt id='TQP5S'><q id='TQP5S'><span id='TQP5S'><b id='TQP5S'><form id='TQP5S'><ins id='TQP5S'></ins><ul id='TQP5S'></ul><sub id='TQP5S'></sub></form><legend id='TQP5S'></legend><bdo id='TQP5S'><pre id='TQP5S'><center id='TQP5S'></center></pre></bdo></b><th id='TQP5S'></th></span></q></dt></tr></i><div id='TQP5S'><tfoot id='TQP5S'></tfoot><dl id='TQP5S'><fieldset id='TQP5S'></fieldset></dl></div>