Lỗi VS 2017 Com: build failed

1>------ Build started: Project: helloWord, Configuration: Debug Win32 ------
1>Source.cpp
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory
1>Done building project "helloWord.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

lỗi này sửa sao vậy mấy bác.

solved

For Visual Studio 2017 I had to:

Run Visual Studio Installer.
Select Modify button.
Go to "Individual Components" tab.
Scroll down to "Compilers, build tools and runtimes".
Tick "Windows Universal CRT SDK".
Install.

đọc error log đi nhé, nó nói éo có file nào là correct.h

2 Likes
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?