Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: fatal error C1010

  1. #1
    Guest

    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!!!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,797

    Re: fatal error C1010

    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.
    Deiussum
    Software Engineer and OpenGL enthusiast

  3. #3
    Guest

    Re: fatal error C1010

    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...

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •