gpt4 book ai didi

c++ - 更新到 vs2017 15.2 后找不到 C 头文件

转载 作者:太空宇宙 更新时间:2023-11-04 08:02:56 25 4
gpt4 key购买 nike

我将我的 VS2017 更新到 15.2 社区版,但现在实际在 VS2017 中开发的先前项目现在无法编译,它无法找到任何 c header ,我无法使用 c++ 对应项{ c* } 因为我不得不让它在一些非常老的编译器上编译,比如 Turbo C++,当我准备好它们在老的编译器上编译时,我想尽可能少地改变

最佳答案

This discussion来自 MSDN 论坛的文章阐明了此事。我将引用那里的一个答案:

The C runtime has become a OS component and its headers and libraries are now part of the Windows SDK instead of 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. If you can't find there then something went wrong during VS install.

你可以找到一些细节in this announce来自微软。

“使用通用 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). The files for the VCRuntime are still part of the Visual C++ SDK. The headers, sources, and libraries are now distributed as part of a separate Universal CRT SDK. This SDK is included with Visual Studio; it is installed by default to C:\Program Files (x86)\Windows Kits\10.

关于c++ - 更新到 vs2017 15.2 后找不到 C 头文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44765473/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com