简体   繁体   English

Microsoft Visual Studio Community 2019:致命错误 C1083:无法打开包含文件:'corecrt.h':没有这样的文件或目录

[英]Microsoft Visual Studio Community 2019: fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory

Just completed the fresh installation of Microsoft Visual Studio Community 2019 with no optional features,刚刚完成了 Microsoft Visual Studio Community 2019 的全新安装,没有可选功能, 在此处输入图像描述 tried running simple code with c++ console app project type:尝试使用 c++ 控制台应用程序项目类型运行简单代码:

#include <iostream>

using namespace std;

int main()
{
    cout << "testing vs 2019" << endl;
    return 0;
}

Getting below error:出现以下错误:

1>------ Rebuild All started: Project: Project1, Configuration: Debug x64 ------ 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(434,5): warning MSB8003: The WindowsSDKDir property is not defined. 1>----- 重建全部启动:项目:Project1,配置:Debug x64 ------ 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC \v160\Microsoft.CppBuild.targets(434,5):警告 MSB8003:未定义 WindowsSDKDir 属性。 Some build tools may not be found.可能找不到某些构建工具。

1>Source.cpp 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\crtdefs.h(10,10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory 1>Done building project "Project1.vcxproj" -- FAILED. 1>Source.cpp 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\crtdefs.h(10,10): 致命错误 C1083: 不能打开包含文件:'corecrt.h':没有这样的文件或目录 1> 完成构建项目“Project1.vcxproj”——失败。 ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== ==========全部重建:0成功,1失败,0跳过==========

I suggest you should download and install the Windows 10 SDK in the VS2019 installer.我建议您应该在 VS2019 安装程序中下载并安装 Windows 10 SDK。

在此处输入图像描述

The selected version needs to be the same as the version set in the project.选择的版本需要与项目中设置的版本一致。

在此处输入图像描述

install the universal CRT SDK - refer the article here Universal-crt安装通用 CRT SDK - 请参阅此处的文章Universal-crt

暂无
暂无

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

相关问题 Visual Studio 2013:致命错误C1083:无法打开包含文件:&#39;winsock2.h&#39;:没有此类文件或目录 - Visual Studio 2013: fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory 严重错误C1083:无法打开包含文件:&#39;mexutils.h&#39;:没有此类文件或目录 - fatal error C1083 : Cannot open include file: 'mexutils.h': No such file or directory 严重错误C1083:无法打开包含文件:&#39;vld.h&#39;:没有此类文件或目录 - fatal error C1083: Cannot open include file: 'vld.h': No such file or directory 致命错误 C1083:无法打开包含文件:“xyz.h”:没有这样的文件或目录? - fatal error C1083: Cannot open include file: 'xyz.h': No such file or directory? 严重错误C1083:无法打开包含文件:“ Item.h”&#39;:没有此类文件或目录 - fatal error C1083: Cannot open include file: 'Item.h”': No such file or directory 致命错误 C1083:无法打开包含文件:&#39;fstream.h&#39;:没有这样的文件或目录 - fatal error C1083: Cannot open include file: 'fstream.h': No such file or directory 如何使用Visual Studio解决“严重错误C1083:无法打开包含文件” - How to fix “fatal error C1083: Cannot open include file” using Visual Studio xxx.h:致命错误C1083:无法打开包含文件:&#39;yyyy.h&#39;:没有此类文件或目录 - xxx.h: fatal error C1083: Cannot open include file: 'yyyy.h': No such file or directory SWIG致命错误C1083:无法打开包含文件 - SWIG Fatal error C1083: Cannot open include file QtCreator中的“致命错误C1083:无法打开包含文件” - “Fatal Error C1083: Cannot open include file” in QtCreator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM