View Full Version : anyone know how to fix this error
woleksy
03-11-2004, 10: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, 11:44 AM
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).]
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"??
If you dont know how to handle precompiled headers I suggest you disable them in the project settings or read the MSVC documentation.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.