I am using Visual Studio 2010 to make a 3D model in C++ and OpenGL. I started a project on my home pc, and then decided to put it in a repository, so that I could get the code for development on my laptop and not have to keep transferring files between the two computers (and also just to get some practice at using source control).
The problem I have is that when I load the project on my laptop and try to build it I get an error saying that stdafx.h can not be found. The stdafx.h file is included in the header files folder, and when I click on it the relative path is just stdafx.h
So how then can Visual Studio not find a file that is already in the project? It works fine on my home pc but refuses to work on my laptop.
I have tried changing the precompiled header settings to YU instead of YC but this did not fix the problem.
I imagine I am overlooking something fundamental here but I can’t figure it out.