Click to See Complete Forum and Search --> : I'm stuck
oskarhek
June 1st, 1999, 07:18 AM
I'm writing a dll. At this moment when i want to compile it it give's me the message:
fatal error C1010: unexpected end of file while looking for precompiled header directive
How van I get rid of it?
Pallavi
June 1st, 1999, 07:42 AM
U can start with checking U'r brackets.
Franky Braem
June 1st, 1999, 07:46 AM
Include stdafx.h on the first line of your code or change the following project settings :
C/C++ category Precompiled headers :
select Not using precompiled headers or
Automatic use of precompiled headers through header stdafx.h.
JohnCz
June 1st, 1999, 02:35 PM
There is some truth in Franky’s response.
You must have messed with project settings.
Go to project settings, select project (top). From the drop box select All Configurations. This way you will set it properly in both Debug and Release modes.
Go to C++ tab, select Precompiled headers.
Select “Use precompiled header file…”
In Through header box type stdafx.h.
Now expand tree, go and from expanded Source folder select StdAfx.cpp.
Select “Create precompiled header file…”
In Through header box type stdafx.h.
Hit OK and you should be on the right track.
John Cz
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.