SDL_opengl.h on Dev-C++ 4.9.6.0

If I try to compile the following header:

#include <SDL/SDL.h>
#include <SDL/SDL_opengl.h>

(without any additional includes)
using Dev-C++ 4.9.6.0, I obtain the following error:

In file included from test.h:4,
SDL/SDL_opengl.h:2154: redefinition of PFNGLCOLORSUBTABLEEXTPROC' GL/gl.h:1493:PFNGLCOLORSUBTABLEEXTPROC’ previously declared here

It works well if I use

#define NO_SDL_GLEXT
#include <SDL/SDL.h>
#include <SDL/SDL_opengl.h>

When you include SDL/SDL.h it includes SDL_opengl.h, so you aren’t supposed to
do the: #include <SDL/SDL_opengl.h>

By defining NO_SDL_GLEXT you are basically telling the SDL.h not to include
SDL_opengl.h.

regards,
Gu?mundur ?lafsson.On Sunday 10 November 2002 11:36, CRV?ADER /KY wrote:

If I try to compile the following header:

#include <SDL/SDL.h>
#include <SDL/SDL_opengl.h>

(without any additional includes)
using Dev-C++ 4.9.6.0, I obtain the following error:

In file included from test.h:4,
SDL/SDL_opengl.h:2154: redefinition of PFNGLCOLORSUBTABLEEXTPROC' GL/gl.h:1493:PFNGLCOLORSUBTABLEEXTPROC’ previously declared here

It works well if I use

#define NO_SDL_GLEXT
#include <SDL/SDL.h>
#include <SDL/SDL_opengl.h>


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