Re: Fatal Error C1010 When Building Simple Code

"Adelle Hartley" <[email protected]> Sun, 6 Nov 2005 09:22:03 +1100
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <[email protected]>
Hi, 

> I am using Visual C++ 2005 Beta 2, and when I debug this I 
> get the following:
> 
> fatal error C1010: unexpected end of file while looking for 
> precompiled header. Did you forget to add '#include 
> "stdafx.h"' to your source?

Try switching off "Use precompiled header" in the project options (I've not
used VC++ 2005 so I can't tell you where that option will be),

OR

move the #includes to stdafx.h, and in your main.cpp
#include "stdafx.h"

HTH.

Adelle.

_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/