I am running visual studio C++ and I have a header file "GameEngine.h" that I am trying to have another file see.
When I #include "GameEngine.h" it gives me the error that it cannot open the source file. I have no idea what to do. I have done this literally a thousand times but for some reason this is now not working.
You need to check your project settings, under C++, check include directories and make sure it points to where
GameEngine.h
resides, the other issue could be thatGameEngine.h
is not in your source file folder or in any include directory and resides in a different folder relative to your project folder. For instance you have 2 projectsProjectA
andProjectB
, if you are includingGameEngine.h
in some source/header file inProjectA
then to include it properly, assuming thatProjectB
is in the same parent folder do this:This is if you have a structure like this: