PDA

View Full Version : cannot find GLU



flyingcow
01-18-2002, 09:14 AM
I'm trying to play around with SDL on linux, but I can't compile a small program I downloaded from a tutorial on the web. The linker complains that it can't find the GLU library.

1) I do have -lGLU in my compile options
2) ldconfig -v | grep GLU returns:
libGLU.so.1 -> libGLU.so.1.3
3) glxinfo returns:
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
4) ldd 'which glxinfo' returns:
libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x40022000)

what am I missing here?
thanx a lot

01-20-2002, 12:57 AM
I think that the library is in a directory that is not searched by the linker. Try to add -L/usr/X11R6/lib to the command line.