Using the last glext.h under Linux

I want to use some OpenGL 1.5 extensions under Linux.

I include a file wicth containt that source code :

#ifdef WIN32
#include <windows.h>
#endif //WIN32

#include <GL/gl.h>
#include <GL/glu.h>
#include “./GL/glext.h”

During compilation, i have some errors as :
glBindBufferARB undeclared.

But in my source file i have wroten :

Under Windows i have problem and my glext.h is the last.

Thank to your help !

I have change the original glext.h files (version 17) present in the directory /usr/include/GL with the last version 22 and all my problems are resolved except with the extension GL_ARB_multitexture witch the use is really different that others extensions but this isn’t important.

But this solution don’t relary interesting me before it isn’t easy to other programmer to compile my code.

I think that the define of GL_GLEXT_LEGACY and the include of “./GL/glext.h” aren’t used and i don’t understand why …

glext.h version 22. So I assume you’re not running on Nvidia cards. What is your graphics card ?

glext.h should be located in the same directory like gl headers do.

I personnally don’t define GL_GLEXT_LEGACY. Using Opengl extensions do not require that at my understanding of them.

You should also explain more exactly what is your problem if you want people here to be able to help you more easily.

I have resolve my problem, thanks to you help.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.