PDA

View Full Version : anyone know how to fix this error



woleksy
03-11-2004, 11:27 PM
fatal error C1010: unexpected end of file while looking for precompiled header directive

I have one for every cpp in my visual c++.net project. can anyone let me know what I can do to fix it.

thanks

W

DarthPaul
03-15-2004, 12:44 PM
You probably need to include "stdafx.h".
So add:
#include "stdafx.h"
at the top of every .CPP file.
You include typical headers and stuff that doesn't change often in the stdafx.h file.

[This message has been edited by DarthPaul (edited 03-15-2004).]

hanz
03-23-2004, 11:39 PM
You probably need to include "stdafx.h".
So add:
#include "stdafx.h"
at the top of every .CPP file.
why do we include "stdafx.h"??

Honk
03-24-2004, 12:19 AM
If you dont know how to handle precompiled headers I suggest you disable them in the project settings or read the MSVC documentation.