Thread: OpenGL: Errors in GL.h

  1. #1
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373

    OpenGL: Errors in GL.h

    I am trying to compile something in OGL, but I get these errors:

    c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
    c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
    c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found

    Wow i hate it when Major libs are messing up on me.


    Anyway, Anyone got any idea how to fix it? Thanks in advanced.
    This war, like the next war, is a war to end war.

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    Try including windows.h before you include gl.h
    STL Util a small headers-only library with various utility functions. Mainly for fun but feedback is welcome.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors with header files in OpenGL using VisualC++
    By wile_spice in forum Game Programming
    Replies: 3
    Last Post: 06-22-2006, 08:56 AM
  2. I want to learn openGL......... but
    By Muphin in forum Game Programming
    Replies: 15
    Last Post: 07-20-2005, 04:35 PM
  3. OpenGL graphics
    By Da-Nuka in forum Game Programming
    Replies: 9
    Last Post: 03-31-2005, 09:52 AM
  4. SDL_ttf and OpenGL
    By sand_man in forum Game Programming
    Replies: 2
    Last Post: 12-01-2004, 06:06 PM
  5. OpenGL lighting
    By BabyG in forum Game Programming
    Replies: 3
    Last Post: 08-29-2004, 09:58 AM