Fatal Error C1010
Author
Zhou Renjian
Create@
2005-04-09 13:05
SUMMARY
This article describes the most common cause for, and how to work around the following C1010 error message:
Fatal Error C1010: unexpected end of file while looking for precompiled header directive
MORE INFORMATION
You receive this error message when the following are true:
? | You specify an include file with the /Yu (Use Precompiled Header) command line option that is not listed in the source file. (When you create a Visual C++ project, Use Precompiled Header is set by default with stdafx.h as header file name). |
? | You inadvertently delete an #include statement from the source file that referenced the .h file that the /Yu option is looking for. |
http://support.microsoft.com/kb/815644
Comment:
Adding a line
#include "stdafx.h"
to the *.cpp and recompile will resolve this problem.