Cannot find GLU

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: ->
  3. glxinfo returns:
    glu version: 1.3
    glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
  4. ldd ‘which glxinfo’ returns: => /usr/X11R6/lib/ (0x40022000)

what am I missing here?
thanx a lot

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.

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