简体   繁体   English

更新到vs2017 15.2后找不到C标头

[英]can't find C headers after updating to vs2017 15.2

我将VS2017更新为15.2社区版,但是现在以前在VS2017中实际开发的项目现在无法编译,无法找到任何c头文件,并且我无法使用c ++对应文件{c *},因为我不得不使它可以在某些非常老的编译器(例如Turbo C ++)上进行编译,当我准备好在较早的编译器上进行编译时,我希望尽可能减少更改

This discussion from MSDN forums sheds some light on the matter. MSDN论坛上的讨论为该问题提供了一些启示。 I'll quote one of the answers there: 我将在其中引用答案之一:

The C runtime has become a OS component and its headers and libraries are now part of the Windows SDK instead of VC++. C运行时已成为OS组件,并且其标头和库现在已成为Windows SDK而不是VC ++的一部分。 I don't have a machine with VS2015 handy to check the exact paths but search for them in C:\\Program Files (x86)\\Windows Kits. 我没有方便使用VS2015的计算机来检查确切路径,而是在C:\\ Program Files(x86)\\ Windows Kits中搜索它们。 If you can't find there then something went wrong during VS install. 如果找不到,则在VS安装期间出了点问题。

You can find some details in this announce from Microsoft. 您可以 Microsoft的此公告中找到一些详细信息。

Section "Building Software using the Universal CRT" states: “使用通用CRT构建软件”部分指出:

Previously, all of the CRT headers, sources, and libraries were distributed as part of the Visual C++ SDK, installed in the VC subdirectory of your Visual Studio installation (generally C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC). 以前,所有CRT标头,源代码和库都是作为Visual C ++ SDK的一部分分发的,安装在Visual Studio安装的VC子目录中(通常为C:\\ Program Files(x86)\\ Microsoft Visual Studio 14.0 \\ VC) 。 The files for the VCRuntime are still part of the Visual C++ SDK. VCRuntime的文件仍然是Visual C ++ SDK的一部分。 The headers, sources, and libraries are now distributed as part of a separate Universal CRT SDK. 标头,源和库现在作为单独的Universal CRT SDK的一部分分发。 This SDK is included with Visual Studio; 该SDK随Visual Studio一起提供。 it is installed by default to C:\\Program Files (x86)\\Windows Kits\\10. 默认情况下,它将安装到C:\\ Program Files(x86)\\ Windows Kits \\ 10。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM