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.