<tfoot id='vcVON'></tfoot>

  1. <legend id='vcVON'><style id='vcVON'><dir id='vcVON'><q id='vcVON'></q></dir></style></legend>

      <bdo id='vcVON'></bdo><ul id='vcVON'></ul>

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

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

      使用 MSVC 14.0 (VS 2015) 编译 Boost 时编译器版本未知

      Unknown compiler version while compiling Boost with MSVC 14.0 (VS 2015)(使用 MSVC 14.0 (VS 2015) 编译 Boost 时编译器版本未知)

      <tfoot id='1ld8y'></tfoot>
      • <legend id='1ld8y'><style id='1ld8y'><dir id='1ld8y'><q id='1ld8y'></q></dir></style></legend>
      • <i id='1ld8y'><tr id='1ld8y'><dt id='1ld8y'><q id='1ld8y'><span id='1ld8y'><b id='1ld8y'><form id='1ld8y'><ins id='1ld8y'></ins><ul id='1ld8y'></ul><sub id='1ld8y'></sub></form><legend id='1ld8y'></legend><bdo id='1ld8y'><pre id='1ld8y'><center id='1ld8y'></center></pre></bdo></b><th id='1ld8y'></th></span></q></dt></tr></i><div id='1ld8y'><tfoot id='1ld8y'></tfoot><dl id='1ld8y'><fieldset id='1ld8y'></fieldset></dl></div>
          <tbody id='1ld8y'></tbody>

        • <small id='1ld8y'></small><noframes id='1ld8y'>

                <bdo id='1ld8y'></bdo><ul id='1ld8y'></ul>
              • 本文介绍了使用 MSVC 14.0 (VS 2015) 编译 Boost 时编译器版本未知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我在尝试在我的计算机上编译 Boost 库时收到未知的编译器版本 - 请运行配置测试并报告结果".
                我有最新的 Boost(截至发帖日期)- 1.58.0.
                Boost 不支持 MSVC 14.0 吗?我如何运行配置测试"?

                I get "Unknown compiler version - please run configure tests and report the results" while attempting to compile Boost library on my computer.
                I have most recent Boost (as of date of the post) - 1.58.0.
                Doesn't Boost support MSVC 14.0, yet? How do I "run the configure tests"?

                .

                推荐答案

                最新(发布此答案时)Boost 1.58 确实支持 MSVC 14.0 PreviewBoost 1.58 发布时最新的 MS 编译器.现在,最新版本的 Visual Studio2015 RC,boost 1.58 配置文件中未包含该版本.

                Latest (at the time of posting this answer) Boost 1.58 does support MSVC 14.0 Preview which was the latest MS compiler at the time of Boost 1.58 release. Now, the latest version of Visual Studio is 2015 RC which isn't covered in the boost 1.58 config file.

                要停止 Boost 1.58 抱怨未知编译器版本,请编辑 boost/config/compiler/visualc.hpp 并替换:

                To stop Boost 1.58 complaining about unknown compiler version edit boost/config/compiler/visualc.hpp and replace:

                // last known and checked version is 19.00.22129 (VC14 Preview):
                #if (_MSC_VER > 1800 && _MSC_FULL_VER > 190022310)
                

                与:

                // last known and checked version is 19.00.22816 (VC++ 2015 RC):
                #if (_MSC_VER > 1800 && _MSC_FULL_VER > 190022816)
                

                您可以在boost repo 此处中找到即将推出的Boost1.59 发布.

                which you can find is already done in boost repo here for upcoming Boost 1.59 release.

                更新:对于 Visual Studio 2015 RTM,将其设置为:

                // last known and checked version is 19.00.23026 (VC++ 2015):
                #if (_MSC_VER > 1800 && _MSC_FULL_VER > 190023026)
                

                Update2:对于 Visual Studio 2015 Update 1,将其设置为:

                // last known and checked version is 19.00.23506 (VC++ 2015 Update 1):
                #if (_MSC_VER > 1800 && _MSC_FULL_VER > 190023506)
                

                <小时>

                此外,如果您之前一直在 toolset=msvc-14.0 上运行 Boost.Build,则从 C:UsersAppDataLocalTemp 中删除> 以下缓存文件:


                Also if you have previously been running Boost.Build on toolset=msvc-14.0 then delete from C:Users<name>AppDataLocalTemp the following cached files:

                b2_msvc_14.0_vcvarsall_x86.cmd 
                b2_msvc_14.0_vcvarsall_x86_amd64.cmd 
                b2_msvc_14.0_vcvarsall_x86_arm.cmd
                

                在此处了解更多相关信息.

                Update3为了将来参考,在您的 Visual Studio 工具命令提示符中运行命令 cl/Bv 以查看您的版本号(参数区分大小写).

                Update3 For future reference, in your Visual Studio Tools Command Prompt run the command cl /Bv to see your version numbers (the parameters are case sensitive).

                我的输出如下:

                C:Program Files (x86)Microsoft Visual StudioPreviewProfessionalVCToolsMSVC14.11.25503inHostX64x64cl.exe:        Version 19.11.25506.0
                 C:Program Files (x86)Microsoft Visual StudioPreviewProfessionalVCToolsMSVC14.11.25503inHostX64x64c1.dll:        Version 19.11.25506.0
                 C:Program Files (x86)Microsoft Visual StudioPreviewProfessionalVCToolsMSVC14.11.25503inHostX64x64c1xx.dll:      Version 19.11.25506.0
                 C:Program Files (x86)Microsoft Visual StudioPreviewProfessionalVCToolsMSVC14.11.25503inHostX64x64c2.dll:        Version 19.11.25506.0
                 C:Program Files (x86)Microsoft Visual StudioPreviewProfessionalVCToolsMSVC14.11.25503inHostX64x64link.exe:      Version 14.11.25506.0
                 C:Program Files (x86)Microsoft Visual StudioPreviewProfessionalVCToolsMSVC14.11.25503inHostX64x64mspdb140.dll:  Version 14.11.25506.0
                 C:Program Files (x86)Microsoft Visual StudioPreviewProfessionalVCToolsMSVC14.11.25503inHostX64x641033clui.dll: Version 19.11.25506.0
                

                由此您可以推断出_MSC_VER 是1911(来自文本Version 19.11")而_MSC_FULL_VER 是191125506.

                From this you can deduce the _MSC_VER is 1911 (from the text "Version 19.11") and the _MSC_FULL_VER is 191125506.

                这篇关于使用 MSVC 14.0 (VS 2015) 编译 Boost 时编译器版本未知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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自动链接如何做出选择?)

                  <bdo id='wL5tq'></bdo><ul id='wL5tq'></ul>
                    <tbody id='wL5tq'></tbody>
                  <tfoot id='wL5tq'></tfoot>

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

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

                      <legend id='wL5tq'><style id='wL5tq'><dir id='wL5tq'><q id='wL5tq'></q></dir></style></legend>