[英]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跳过==========
install the universal CRT SDK - refer the article here Universal-crt安装通用 CRT SDK - 请参阅此处的文章Universal-crt
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.