Reputation: 41
I've been working on my game engine for a while and for some reason all of a sudden I came up with an error that many header files are missing. I checked the console and there is no errors in the code and also I already compiled the project before. It happened after I removed Windows files from my old disc that I dont use as primary disc anymore and visual studio mightve used those files from that path. I already tried repairing Visual Studio but it didn't fix the problem. Here is a screenshot of the errors:
ANSWER: The Windows SDK was missing and so, the files couldn't be found. I downloaded the sdk from here
Upvotes: 3
Views: 3033
Reputation: 2617
Also make sure the include / library path don't contain any space. After I moved the project to a spaceless path, and replaced the content in .vcxproj, header files were loaded.
Upvotes: 1
Reputation: 293
For your project, go to Project->Properties and verify that the project is set to use a version of Windows SDK that is installed on the General tab as well as a platform toolset that is installed. Also make sure that at the dropdowns at the top for configuration/platform are the environment you are currently testing in (ex. Debug x86 would be Debug Win32).
Upvotes: 6