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,753

    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.

Similar Threads

  1. fatal error C1189: #error : gl.h included before
    By Selina in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-26-2010, 03:21 PM
  2. Replies: 1
    Last Post: 09-24-2007, 04:02 AM
  3. GLUT Fatal Error
    By santosh311 in forum OpenGL: Linux
    Replies: 0
    Last Post: 07-21-2003, 01:38 AM
  4. Fatal Error - please help
    By mugzy05 in forum OpenGL: User Software
    Replies: 0
    Last Post: 10-17-2002, 09:42 PM
  5. Fatal Error using MVC++
    By WormTongue in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-27-2002, 09:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean