I am getting a very annoying error while trying to compile my code,
everything looks fine but I'm getting an error saying I am forgetting to include a file WHICH I am NOT
Severity Code Description Project File Line Suppression State
Error C1010 unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? ConsoleApplication2 c:\users\user\source\repos\consoleapplication2\consoleapplication2\source.cpp
Hi Thomas I deleted stdafx.cpp and Source.cpp from the project and it now seems to build and compile
just wondering what is going on how come I needed to do all that just to get a simple project to compile other IDE's such as eclipse and C::B don't seem to need any of that?
The project templates is VS are more for professionals and not so much for beginners.
All this stdafx stuff with pre-compiled headers makes only sense for big projects, but are a pain in the neck for small test apps.
I usually start with an empty project and add a main.cpp and paste my own code.