OpenGL: Errors in GL.h

This is a discussion on OpenGL: Errors in GL.h within the Game Programming forums, part of the General Programming Boards category; 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: ...

  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,197
    Try including windows.h before you include gl.h

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, 08:52 AM
  4. SDL_ttf and OpenGL
    By sand_man in forum Game Programming
    Replies: 2
    Last Post: 12-01-2004, 05:06 PM
  5. OpenGL lighting
    By BabyG in forum Game Programming
    Replies: 3
    Last Post: 08-29-2004, 09:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21