I’m trying to compile the typical GLext.h file for using OpenGL extensions. The GLext.h file, among 5000 other lines of code, contains a whole bunch of statements of the form:
Well, I guess it would be more proper to say that the file including the header file is giving me a problem, but Eclipse reports the error as being in the header file because that is logically where the error occurs.
The error for this line (which is the first line on which a problem occurs):
I am compiling using Eclipse. The more I look at it, the more I think it is a compiler issue.
You include GLext.h before gl.h. I have tried this and I got a lot of error with gcc. Have you tried to include it after <GL/gl.h>. The GLext.h file contain declarations that depend on the gl.h header.
Holy sh*t, it works! I thought I tried that before…thank you so much. Some people specifically told me not to do that, which may be why I never tried it.
What’s the difference between glxGetProcAddress, wglGetProcAddress, and glutGetProcAddress? If they all do the same thing, what dependencies do each of these introduce?