Cannot find corecrt.h: $(UniversalCRT_IncludePath) is wrong
Solution 1:
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.
Solution 2:
you probably fixed this already, but if someone else comes along, i solved this by following the tip here.
Basically set the following system environment variables:
INCLUDE="C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt"
LIB="C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64"
There is probably a much better best-practice way of doing it, but for just fixing it super-fast, this worked great.
Solution 3:
I had the same problem. I tried the answers here. It didn't work 100%. What I found is that the VC++ 2015 toolset (x86, x64) is necessary for the 2017 Community Edition (which I am using now), but without adding any include or lib links.
Best regards.
Solution 4:
Maybe there was something missing while installing the Visual Studio. You can check whether you forgot to choose the VC++ toolset.
-
Control Panel
->All Control Panel Items
->Programs and Features
->Visual studio 2015
- Click
change/uninstall
- Choose the
VC++2015 toolset(x86,x64)
and install.
For Visual Studio Community 2017 RC(15.0.26206.0), the name of optional tool is VC++ 2017 v141 toolset(x86,x64)
: