Glx linking problems... please help!

I’am building a small application using GLUT, SDL (yes both… I only use 3D primitives from GLUT)and i’am having this rare linking error :

“liglut.so : undefined reference to ‘glxQueryExtension’
liglut.so : undefined reference to ‘glxMaxCurrent’…”

and so on, all error are about GLX, but when i try to link it myself (using -lglx option) more error appear about XFree86.

I’ve installed the GLX and Driver Rpm from NVIDIA 's site and glxinfo command says me that it is well installed.

I had this problem after updating my Mandrake 8.0 distrib.

To compil I use the following options :

-lX11 -lXmu -lXext -lXt -lXi -lm -lGL -lGLU -lglut -lSDL -lpthread

it used to work, but now I can only launch the old executable but I can’t compile the all project.

Any help on this ?

regards

[This message has been edited by Monseigneur (edited 04-08-2002).]

You can try to move -lglut before the other libraries. I think that your idea to mix GLUT and SDL is bad. GLUT is not made for this. How do you get GLUT to draw the teapot on a SDL window?

I build the OpenGL window/context with SDL (with the OGL flag) and int the rendering function I use GLUT’s primitives like teapot or sphere and this is it.

I’m gone try what you’ve just write thanks.

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