PDA

View Full Version : fatal error C1010



03-12-2001, 07:08 PM
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!!!

Deiussum
03-13-2001, 08:19 AM
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... http://www.opengl.org/discussion_boards/ubb/smile.gif

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.

03-15-2001, 07:17 AM
Originally posted by Deiussum:
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... http://www.opengl.org/discussion_boards/ubb/smile.gif

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.

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