T
The Bard of Chelsea
Guest
I've been bedeviled by this issue for 3 years w/o resolution. Though I've seen it addressed by other posts on this forum, none of these provides a solution that works. So, here goes -- one last time before go back to stamp collecting:
I am trying to rebuild a win32 app using VS 2015 C++ Express under 64-bit Windows 7 Professional. I started from scratch creating the appropriate project file under VS 2015 and ported over my app-specific source code. My build attempt under VS 2015 generates one error msg:
RC1015: cannot open include file 'vcruntime.h'
The app formerly was built successfully using VS 2012 without incident. Also, similar apps I’ve successfully developed under VS 2015 have not generated this error msg.
The output produced by Build cmd under VS 2015 IDE suggests that the directory being used is C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt. However, files ctype.h and corect.h do not exist in that directory. Also, vcruntime.h did not exist anywhere on my PC until I downloaded same a while ago from some long-forgotten website.
Despite its questionable heritage the downloaded version of vcruntime.h has worked all right for all other apps I have developed under VS 2015. Following are the remedies I have attempted to resolve this issue for the subject troublesome app:
REMEDY ATTEMPT #1: I copied ctype.h and corect.h from ..\10.0.10586.0\ucrt to a local directory I had specified under Properties -> Configuration Properties -> C/C++ -> Preprocessor -> VC++ Directories -> Include Directories. I also copied the aforementioned file vcruntime.h to that directory, and I changed “<>” to “””” as appropriate in the relevant #include statements.
RESULT: The Build terminates with one error:
RC1015: cannot open include file vcruntime.h
REMEDY ATTEMPT #2: I copied ctype.h, corect.h and vcruntime.h from my local directory to C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt. I also reverted to “<>” in the #include statements.
RESULT: The Build terminates with the same error:
RC1015: cannot open include file vcruntime.h
REMEDY ATTEMPT #3: I renamed vcruntime.h to vcruntime_RWH.h and made the requisite edit to corect.h in directory C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt.
RESULT: The Build terminates with one error:
RC1015: cannot open include file vcruntime_RWH.h
REMEDY ATTEMPT #4: In C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt \correct.h I replaced the #include <vcruntime.h> statement with the contents of file vcruntime.h.
RESULT: The Build terminates with one error:
RC1015: cannot open include file corect.h
Needless to say, before grasping at the aforementioned straws, I pursued these more vanilla flavored remedies:
(1) Reinstalled VS 2015
(2) Rebuilt solution from scratch multiple times.
(3) Tried both Target Platform versions: 10.0.10586.0 and 8.1
(4) Messed around with other project settings beyond my understanding before starting over.
Can anyone help me resolve this issue?
If my project is the suspected culprit, I would be willing to provide any interested party with a zip file containing all project files and source code.
Thank you for attending to this.
rwh
Continue reading...
I am trying to rebuild a win32 app using VS 2015 C++ Express under 64-bit Windows 7 Professional. I started from scratch creating the appropriate project file under VS 2015 and ported over my app-specific source code. My build attempt under VS 2015 generates one error msg:
RC1015: cannot open include file 'vcruntime.h'
The app formerly was built successfully using VS 2012 without incident. Also, similar apps I’ve successfully developed under VS 2015 have not generated this error msg.
The output produced by Build cmd under VS 2015 IDE suggests that the directory being used is C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt. However, files ctype.h and corect.h do not exist in that directory. Also, vcruntime.h did not exist anywhere on my PC until I downloaded same a while ago from some long-forgotten website.
Despite its questionable heritage the downloaded version of vcruntime.h has worked all right for all other apps I have developed under VS 2015. Following are the remedies I have attempted to resolve this issue for the subject troublesome app:
REMEDY ATTEMPT #1: I copied ctype.h and corect.h from ..\10.0.10586.0\ucrt to a local directory I had specified under Properties -> Configuration Properties -> C/C++ -> Preprocessor -> VC++ Directories -> Include Directories. I also copied the aforementioned file vcruntime.h to that directory, and I changed “<>” to “””” as appropriate in the relevant #include statements.
RESULT: The Build terminates with one error:
RC1015: cannot open include file vcruntime.h
REMEDY ATTEMPT #2: I copied ctype.h, corect.h and vcruntime.h from my local directory to C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt. I also reverted to “<>” in the #include statements.
RESULT: The Build terminates with the same error:
RC1015: cannot open include file vcruntime.h
REMEDY ATTEMPT #3: I renamed vcruntime.h to vcruntime_RWH.h and made the requisite edit to corect.h in directory C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt.
RESULT: The Build terminates with one error:
RC1015: cannot open include file vcruntime_RWH.h
REMEDY ATTEMPT #4: In C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt \correct.h I replaced the #include <vcruntime.h> statement with the contents of file vcruntime.h.
RESULT: The Build terminates with one error:
RC1015: cannot open include file corect.h
Needless to say, before grasping at the aforementioned straws, I pursued these more vanilla flavored remedies:
(1) Reinstalled VS 2015
(2) Rebuilt solution from scratch multiple times.
(3) Tried both Target Platform versions: 10.0.10586.0 and 8.1
(4) Messed around with other project settings beyond my understanding before starting over.
Can anyone help me resolve this issue?
If my project is the suspected culprit, I would be willing to provide any interested party with a zip file containing all project files and source code.
Thank you for attending to this.
rwh
Continue reading...