fatal error C1010

I have included all my libraries ie.opengl32.lib glu32.lib into Visual C++ 6 ‘Project/Settings/Link/object/ library modules’ ,and included head files ie.<windows.h> <gl/gl.h> <gl/glu.h> into my source code,but produce ‘fatal error C1010: unexpected end of file while looking for precompiled header directive’
i want to contiue my work now ,Thank you very much for any help!!!

You setup a project to use precompiled headers and then took out, or never put in the line

#include “stdafx.h”

in one of your files, didn’t you…

Either put that line at the top of every one of your .cpp files or turn of the use of precompiled headers in your project settings. It’s on the C++ tab, if I recall correctly. There’s a dropdown for “precompiled headers” settings.

Originally posted by Deiussum:
[b]You setup a project to use precompiled headers and then took out, or never put in the line

#include “stdafx.h”

in one of your files, didn’t you…

Either put that line at the top of every one of your .cpp files or turn of the use of precompiled headers in your project settings. It’s on the C++ tab, if I recall correctly. There’s a dropdown for “precompiled headers” settings.[/b]

thank Deiussum,i solved the problem easily with your help.