PDA

View Full Version : Linking to GLU libraries



beginQT
26th October 2011, 11:08
Hello,

I am doing my application in QT Eclipse. I have a problem with GLU libraries.
I am using opengl where all gl commands are well compiled but when i try to use GLU commands like gluNewQuadric() I am getting an error as below.

undefined reference to `gluNewQuadric@0'

I have included the required includes in my file i.e
#include<GL/gl.h>
#include<GL/glu.h>

with this, GL commands have no problem but GLU commands are not working.

Is there any way to get out of this? Am I missing something which is very obvious?

Thanks in Advance!