Compiling woes, help please :-(

I had loads of errors before and someone mentioned i add a few things in my gcc commmand line so i did but i get this error:

/usr/bin/ld: cannot find -lGlu
collect2: ld returned 1 exit status

But the GL folder in /usr/include has the following files

fgl.h    glext.h   glu.h       GLwDrawAP.h   glxext.h  glxmd.h      osmesa.h
fglu.h   gl.h      glut.h      GLwMDrawA.h   glx.h     glxproto.h
fglut.h  glsmap.h  GLwDrawA.h  GLwMDrawAP.h  glxint.h  glxtokens.h

As you can see i have glu.h, so i changed the compile line and i still get the error, any ideas as to what this is and how i can solve this, cheers.


Your error comes from the linker.
You have a problem with libGLu library not with headers.
Check your library directories.


Just change -lGlu to -lGLU and you should be ok.

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