Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fatal error C1010 1

Status
Not open for further replies.

HyperEngineer

Programmer
May 8, 2002
190
US
I wrote a class .cpp file with the accompanying .H file in the VC6 IDE, but did not do it as an MFC .exe file. Just did the .CPP and .H files. Next, I started a MFC project and added these files. The class showed up in the class view and the files showed up in the file view. However, when I did a build it gave me the following error:

fatal error C1010: unexpected end of file while looking for precompiled header directive

Any ideas on what it's looking for?

The class was based on code from
Communications: A C++ Developer's Guide, 2nd Edition
by Mark Nelson, M&T books, 1999

thanks,
 
Very common error. It is looking for a file name "stdafx.h", which should be the first include in your .cpp file. Alternatively, you can go in the project settings, and remove the "use precompiler header" option.

Good luck,

Vincent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top