PDA

View Full Version : Compiling woes, help please :-(



Andrew Davey
05-24-2004, 06:31 AM
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 statusBut 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.hAs 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.

05-24-2004, 09:53 AM
Hi,

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

Luke

zen
05-24-2004, 01:10 PM
Just change -lGlu to -lGLU and you should be ok.