Glew.h and SDL_opengl.h - conflicting declarations

Hello all,

Has anyone tried using glew with SDL_opengl?
I’m getting loads of “conflicting declerations” mainly due to const-ness
conflicts.

glew is awesome (have a look here if you don’t know about it
http://glew.sourceforge.net/ http://glew.sourceforge.net/ already).
Any chance SDL_opengl can work with it?

Btw, if you include normal gl related headers (e.g. gl.h, glu.h, glut.h) and
glew.h, everything works fine…
(The only requirement is that glew.h is included first, otherwise you get a
"error: gl.h included before glew.h"
which is fair enough I guess…)

So, I’m guessing/assuming the trouble is with SDL_opengl.h (?)

cheers,_________________________________________________
kostas kostiadis | lead programmer | climax action
work: mailto:Kostas_Kostiadis @Kostas_Kostiadis |
http://www.climaxgroup.com/ www.climaxgroup.com
home: <mailto:kos at kostiadis.com> kos at kostiadis.com |
http://www.kostiadis.com/ www.kostiadis.com

BTW, defining NO_SDL_GLEXT does the trick…
I’m just not sure why the const-ness in the signatures of certain fucntions
is different in SDL_opengl.h

Cheers,
Kos_____

From: sdl-bounces+kos=climaxgroup.com@libsdl.org
[mailto:sdl-bounces+kos=climaxgroup.com at libsdl.org] On Behalf Of Kostas
Kostiadis
Sent: 13 December 2006 11:36
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: [SDL] glew.h and SDL_opengl.h - conflicting declarations

Hello all,

Has anyone tried using glew with SDL_opengl?
I’m getting loads of “conflicting declerations” mainly due to const-ness
conflicts.

glew is awesome (have a look here if you don’t know about it
http://glew.sourceforge.net/ http://glew.sourceforge.net/ already).
Any chance SDL_opengl can work with it?

Btw, if you include normal gl related headers (e.g. gl.h, glu.h, glut.h) and
glew.h, everything works fine…
(The only requirement is that glew.h is included first, otherwise you get a
"error: gl.h included before glew.h"
which is fair enough I guess…)

So, I’m guessing/assuming the trouble is with SDL_opengl.h (?)

cheers,


kostas kostiadis | lead programmer | climax action
work: mailto:Kostas_Kostiadis @Kostas_Kostiadis |
http://www.climaxgroup.com/ www.climaxgroup.com
home: <mailto:kos at kostiadis.com> kos at kostiadis.com |
http://www.kostiadis.com/ www.kostiadis.com