Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cannot open include file: 'vcruntime.h'
Forum Update on Monday, May 27th 2025

Cannot open include file: 'vcruntime.h'

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 8.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sykac
    wrote on 14 Jun 2018, 08:32 last edited by
    #1

    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?

    J 1 Reply Last reply 14 Jun 2018, 08:38
    0
    • S sykac
      14 Jun 2018, 08:32

      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?

      J Offline
      J Offline
      JonB
      wrote on 14 Jun 2018, 08:38 last edited by JonB
      #2

      @sykac
      FWIW, in my VS 2010 (the last useable version of VS :) ), I don't have it in my C:\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 Reply Last reply
      2

      1/2

      14 Jun 2018, 08:32

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved