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

      • <bdo id='A2ga1'></bdo><ul id='A2ga1'></ul>
      <legend id='A2ga1'><style id='A2ga1'><dir id='A2ga1'><q id='A2ga1'></q></dir></style></legend>

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

        如何在 Visual Studio 2015 中更新我的 C++ 项目以使用新的通用 CRT?

        How to I update my C++ project in Visual Studio 2015 to use the new Universal CRT?(如何在 Visual Studio 2015 中更新我的 C++ 项目以使用新的通用 CRT?)
      1. <legend id='39svI'><style id='39svI'><dir id='39svI'><q id='39svI'></q></dir></style></legend>
        • <small id='39svI'></small><noframes id='39svI'>

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

                <bdo id='39svI'></bdo><ul id='39svI'></ul>

                1. 本文介绍了如何在 Visual Studio 2015 中更新我的 C++ 项目以使用新的通用 CRT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  VS2015 将我的项目更新到新的平台工具集 v140 后,由于链接器错误而无法构建:LNK1104 无法打开文件libucrt.lib".

                  After VS2015 updated my project to the new Platform toolset v140, it fails to build due to a linker error : LNK1104 cannot open file 'libucrt.lib'.

                  由于本文中提到的新通用 CRT,此库似乎已被移动:http://blogs.msdn.com/b/vcblog/archive/2015/03/03/introducing-the-universal-crt.aspx?PageIndex=2.

                  It appears this library has been moved around due to the new Universal CRT as mentioned in this article : http://blogs.msdn.com/b/vcblog/archive/2015/03/03/introducing-the-universal-crt.aspx?PageIndex=2.

                  虽然这篇文章确实告诉我我现在应该链接什么,但它没有提供如何链接的说明.

                  While the article does tell me what I should link towards now, it does not provide instructions how.

                  我的解决方案生成一个 .exe 和一个它使用的 .dll.我不知道如何处理文章下面描述的矩阵.

                  My Solution generates a .exe and a .dll it uses. I do not know what to do with the matrix the article describes below.

                  发布 DLL (/MD): msvcrt.lib vcruntime.lib ucrt.lib

                  Release DLLs (/MD ): msvcrt.lib vcruntime.lib ucrt.lib

                  发布静态(/MT):libcmt.lib libvcruntime.lib libucrt.lib

                  Release Static (/MT ): libcmt.lib libvcruntime.lib libucrt.lib

                  推荐答案

                  转换项目时,您需要确保更新包含和链接器设置以指向新的 CRT.

                  When you convert your project, you need to make sure you update both the includes AND the linker settings to point to the new CRT.

                  对于包含,添加以下内容:

                  For includes, add the following:

                  $(UniversalCRT_IncludePath)
                  

                  对于链接,根据您的目标处理器添加以下内容之一:

                  For link, add one of the following depending on your target processor:

                  $(UniversalCRT_LibraryPath_x86)
                  $(UniversalCRT_LibraryPath_x64)
                  $(UniversalCRT_LibraryPath_arm)
                  

                  这篇关于如何在 Visual Studio 2015 中更新我的 C++ 项目以使用新的通用 CRT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Constructor initialization Vs assignment(构造函数初始化 Vs 赋值)
                  Is a `=default` move constructor equivalent to a member-wise move constructor?(`=default` 移动构造函数是否等同于成员移动构造函数?)
                  Has the new C++11 member initialization feature at declaration made initialization lists obsolete?(声明时新的 C++11 成员初始化功能是否使初始化列表过时了?)
                  Order of constructor call in virtual inheritance(虚继承中构造函数调用的顺序)
                  How to use sfinae for selecting constructors?(如何使用 sfinae 选择构造函数?)
                  Initializing a union with a non-trivial constructor(使用非平凡的构造函数初始化联合)

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

                          <tbody id='i5nq7'></tbody>

                          <bdo id='i5nq7'></bdo><ul id='i5nq7'></ul>
                          1. <tfoot id='i5nq7'></tfoot>
                          2. <legend id='i5nq7'><style id='i5nq7'><dir id='i5nq7'><q id='i5nq7'></q></dir></style></legend>
                          3. <small id='i5nq7'></small><noframes id='i5nq7'>