<tfoot id='rkxQE'></tfoot>
        <bdo id='rkxQE'></bdo><ul id='rkxQE'></ul>
    1. <small id='rkxQE'></small><noframes id='rkxQE'>

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

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

        VS2015 cl 在命令行上构建时找不到 CRT 库(stdio.h、ctype.h 等)

        VS2015 cl Can#39;t find CRT libs (stdio.h, ctype.h etc.) when building on command line(VS2015 cl 在命令行上构建时找不到 CRT 库(stdio.h、ctype.h 等))

            <small id='8vTRJ'></small><noframes id='8vTRJ'>

              <tbody id='8vTRJ'></tbody>

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

                • <tfoot id='8vTRJ'></tfoot>
                  本文介绍了VS2015 cl 在命令行上构建时找不到 CRT 库(stdio.h、ctype.h 等)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  • 我已经安装了最新的 VS2015 专业版.
                  • 打开 Visual Studio 命令提示符并运行 vcvars32.bat
                  • 编写了一个简单的 helloworld.cpp 程序(包括 stdio.h 并打印hello world")
                  • 试过cl helloworld.cpp

                  我收到以下错误:

                  c:	est>cl helloworld.cpp
                  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23026 for x86
                  Copyright (C) Microsoft Corporation.  All rights reserved.
                  
                  helloworld.cpp
                  helloworld.cpp(1): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
                  

                  vcvars32.bat 设置的包含路径为:

                  The include paths set by the vcvars32.bat are:

                  INCLUDE=C:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE;C:Program Files (x86)Microsoft Visual Studio 14.0VCATLMFCINCLUDE;C:Program Files (x86)Windows Kits10includewdfucrt;C:Program Files (x86)Windows KitsNETFXSDK4.6includeum;C:Program Files (x86)Windows Kits10includewdfshared;C:Program Files (x86)Windows Kits10includewdfum;C:Program Files (x86)Windows Kits10includewdfwinrt;C:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE;C:Program Files (x86)Microsoft Visual Studio 14.0VCATLMFCINCLUDE;C:Program Files (x86)Windows Kits10includewdfucrt;C:Program Files (x86)Windows KitsNETFXSDK4.6includeum;C:Program Files (x86)Windows Kits10includewdfshared;C:Program Files (x86)Windows Kits10includewdfum;C:Program Files (x86)Windows Kits10includewdfwinrt;
                  

                  注意环境变量中的路径是C:Program Files (x86)Windows Kits10includewdfwinrt;"等.但是,文件的实际位置是C:Program Files (x86)Windows Kits10include10.0.10240.0winrt;

                  Note that the paths in the environment variable are "C:Program Files (x86)Windows Kits10includewdfwinrt;" etc. However, the actual location of the files is C:Program Files (x86)Windows Kits10include10.0.10240.0winrt;

                  我在这里做错了吗?非常感谢任何帮助.

                  Am I doing something wrong here? Any help greatly appreciated.

                  ps.我的真正目的是构建 boost 1.58 库(但它遇到与上述相同的问题,所以首先想隔离问题).

                  p.p.s.我注意到以下环境变量.但我无法更改它们.

                  WindowsSDKLibVersion=wdf
                  WindowsSDKVersion=wdf
                  

                  推荐答案

                  如果您安装了 WDK (Windows Driver Kit - 10.0.26639),您将遇到此问题,因为 WDK 会覆盖包含路径.要使其正常工作,您必须卸载 WDK,它应该可以正常工作.

                  If you have WDK (Windows Driver Kit - 10.0.26639) installed you will encounter this issue as the include paths are overwritten by the WDK. To get this to work, you must uninstall the WDK and it should work.

                  查看 Microsoft Connect 问题 - https://connect.microsoft.com/VisualStudio/feedback/details/1610302/universalcrt-detection-breaks-when-windows-driver-kit-is-installed

                  Take a look at the Microsoft Connect issue - https://connect.microsoft.com/VisualStudio/feedback/details/1610302/universalcrt-detection-breaks-when-windows-driver-kit-is-installed

                  这篇关于VS2015 cl 在命令行上构建时找不到 CRT 库(stdio.h、ctype.h 等)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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(使用非平凡的构造函数初始化联合)
                • <small id='8Gt8v'></small><noframes id='8Gt8v'>

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

                        <tbody id='8Gt8v'></tbody>

                      • <tfoot id='8Gt8v'></tfoot>

                          • <bdo id='8Gt8v'></bdo><ul id='8Gt8v'></ul>