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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error compiling implementation : Precompiled Header Directive? 1

Status
Not open for further replies.

MarcDePoe

Programmer
Dec 19, 2000
101
US
I'm having a problem trying to compile an implementation file and I don't understand this error ...

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

does anyone know what this error means?

Again Rookie-ly,
Marc
 
You probably need to add the line

#include "StdAfx.h"

to the top of your CPP file.

When your project is set to use precompiled headers (they're a way of making rebuilds faster), VC++ ignores everything in a CPP file until it sees this line. In fact you can throw in all the syntax errors you want and VC++ never sees them because it ignores all text before the include directive for the precompiled header.
 
Thank You,
I get to keep a lot more hair than expected.
- Marc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top