PDA

View Full Version : glext.h



lufisp
02-06-2009, 05:07 PM
Hello,
I'm using VisualStudio 2008/C++, and I'm trying to compile the file glext.h for OpenGl version 1.1 that i've downloaded from http://www.opengl.org/registry/api/glext.h.
But my compiler doesn't recognize the following construction:
(and many othes like it)

typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEOESPROC) (GLenum modeRGB, GLenum modeAlpha);

the error:
Error 1 error C2143: syntax error : missing ')' before '*' c:\users\fernando\documents\visual studio 2008\projects\c\lesson46\lesson46\glext.h 245 Lesson46
Error 2 error C2143: syntax error : missing ';' before '*' c:\users\fernando\documents\visual studio 2008\projects\c\lesson46\lesson46\glext.h 245 Lesson46
Error 3 error C2059: syntax error : ')' c:\users\fernando\documents\visual studio 2008\projects\c\lesson46\lesson46\glext.h 245 Lesson46
Error 4 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\fernando\documents\visual studio 2008\projects\c\lesson46\lesson46\glext.h 245 Lesson46


I've already read the topic: http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=250182
to try to find a answer before, but doen't work for me...
PS:
I'm including
<windows.h>
<gl/gl.h>
<gl/glu.h>

before i include "glex.h"

Anyone can help-me....

thanks...

Y-tension
02-08-2009, 03:46 AM
Works fine for me (Codeblocks with gcc 4.2.1). Are you sure you have the correct file? Lines 2143 2059 and 4430 have nothing like the typedef you mention.