Cannot open include file: 'vcruntime.h'
-
wrote on 14 Jun 2018, 08:32 last edited by
So far I've been using Qt 5.10.1 with MSVC 2017. Now I need to use an older compiler, so I tried to compile my project with MSVC 2015 and 2013. Both ended up with an error:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\corecrt.h:10: error: C1083: Cannot open include file: 'vcruntime.h': No such file or directory
When using 2017 version, I checked the path
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.11.25503\include
and the required file was there. When I check the path of the older versions, the required file is missing from there:C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include
How could this be solved?
-
So far I've been using Qt 5.10.1 with MSVC 2017. Now I need to use an older compiler, so I tried to compile my project with MSVC 2015 and 2013. Both ended up with an error:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\corecrt.h:10: error: C1083: Cannot open include file: 'vcruntime.h': No such file or directory
When using 2017 version, I checked the path
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.11.25503\include
and the required file was there. When I check the path of the older versions, the required file is missing from there:C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include
How could this be solved?
wrote on 14 Jun 2018, 08:38 last edited by JonB@sykac
FWIW, in my VS 2010 (the last useable version of VS :) ), I don't have it in myC:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
either.Googling for
vcruntime.h
will show other people asking similar, e.g. https://social.msdn.microsoft.com/Forums/sqlserver/en-US/4c21a711-8509-4030-9458-7b2979894baa/can-not-open-include-file-vcruntimeh-error?forum=vcgeneral
1/2