Original Post
In this thread, people were having problems with my GLSL test program. After doing some more research I found out a few things. On the FC1 machine at the university, I cannot compile any program using glXGetProcAddress(ARB). Using the following source: and compiling with:
#include <GL/glx.h>
#include <GL/gl.h>
#include <GL/glext.h>
#include <GL/glxext.h>
int main( int argc, char *argv[] )
{
glXGetProcAddress((const unsigned char*)"whatever");
glXGetProcAddressARB((const unsigned char*)"whatever");
return 0;
}
all: main.o
g++ -g -o test.x main.o -L/usr/X11R6/lib -lGL -lGLU -lXxf86vm
main.o: main.cpp
g++ -g -c main.cpp
I get 'glXGetProcAddressARB undeclared' during compilation. If I comment that line, I get 'undefined reference to glXGetProcAddress' during linking. I've also tried to manually declare glXGetProcAddressARB with:
extern void (*glXGetProcAddressARB(const GLubyte *procname))(void);
but then, it too gives 'undefined reference' during linking. So how on earth am I supposed to use extensions on this linux installation? This pc has an NVidia card, and it's drivers are installed and working. I'll update the post in a few hours with the exact results on my own linux install, but it isn't much better there. According to what I've been able to google, the seems due to different versions of header and library files. But I though I would have solved that by manually defining the *ARB variant. Apparently I haven't. I've also tried to compile GLEW, but it gave the same errors.