OpenGL and SDL and XP?

Ok, I just moved back to a PC form Mac OSX and am having a problem getting
OpenGL to work in XP? I am using #include <gl/gl.h> and #include <gl/glu.h>
and no luck? I get this error

C2144: syntax error : missing ‘;’ before type 'void’
c:\c++\vc98\include\gl\gl.h(1152) : error C2501: ‘WINGDIAPI’ : missing
storage-class or type specifiers
c:\c++\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of
file found
Error executing cl.exe.

main.obj - 3 error(s), 0 warning(s)

confused why this would be? Any help would be apprecitated. Thanks

include <windows.h> before “gl.h”

LvR,

-----Message d’origine-----De: MARS_999 [mailto:mars_999 at mac.com]
Date: jeudi 21 f?vrier 2002 11:29
?: sdl at libsdl.org
Objet: [SDL] OpenGL and SDL and XP???

Ok, I just moved back to a PC form Mac OSX and am having a problem getting
OpenGL to work in XP? I am using #include <gl/gl.h> and #include <gl/glu.h>
and no luck? I get this error

C2144: syntax error : missing ‘;’ before type 'void’
c:\c++\vc98\include\gl\gl.h(1152) : error C2501: ‘WINGDIAPI’ : missing
storage-class or type specifiers
c:\c++\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of
file found
Error executing cl.exe.

main.obj - 3 error(s), 0 warning(s)

confused why this would be? Any help would be apprecitated. Thanks


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

or use
#include "SDL_opengl.h"
which include the windows and GL headers.

At 11:52 21.02.02 +0100, you wrote:>include <windows.h> before “gl.h”

LvR,

-----Message d’origine-----
De: MARS_999 [mailto:mars_999 at mac.com]
Date: jeudi 21 f?vrier 2002 11:29
?: sdl at libsdl.org
Objet: [SDL] OpenGL and SDL and XP???

Ok, I just moved back to a PC form Mac OSX and am having a problem getting
OpenGL to work in XP? I am using #include <gl/gl.h> and #include <gl/glu.h>
and no luck? I get this error

C2144: syntax error : missing ‘;’ before type 'void’
c:\c++\vc98\include\gl\gl.h(1152) : error C2501: ‘WINGDIAPI’ : missing
storage-class or type specifiers
c:\c++\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of
file found
Error executing cl.exe.

main.obj - 3 error(s), 0 warning(s)

confused why this would be? Any help would be apprecitated. Thanks


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Try including windows.h before the gl header files.

i.e.

#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif

then include your gl headers.> ----- Original Message -----

From: mars_999@mac.com (Mars_999)
To:
Sent: Thursday, February 21, 2002 5:28 AM
Subject: [SDL] OpenGL and SDL and XP???

Ok, I just moved back to a PC form Mac OSX and am having a problem getting
OpenGL to work in XP? I am using #include <gl/gl.h> and #include
<gl/glu.h>
and no luck? I get this error

C2144: syntax error : missing ‘;’ before type 'void’
c:\c++\vc98\include\gl\gl.h(1152) : error C2501: ‘WINGDIAPI’ : missing
storage-class or type specifiers
c:\c++\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of
file found
Error executing cl.exe.

main.obj - 3 error(s), 0 warning(s)

confused why this would be? Any help would be apprecitated. Thanks


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl