PDA

View Full Version : error in opengl



niveditha
03-01-2011, 10:13 AM
when m trying to execute ehci-0.6 m getting d errors
undefined reference gluprespective n glulookat as follows

/home/niveditha/project/ehci-0.6/samples/6dofhand.cpp:578: undefined reference to `gluPerspective'
6dofhand.o: In function `ReSizeGLScene(int, int)':
/home/niveditha/project/ehci-0.6/samples/6dofhand.cpp:482: undefined reference to `gluPerspective'
6dofhand.o: In function `DrawGLScene()':
/home/niveditha/project/ehci-0.6/samples/6dofhand.cpp:436: undefined reference to `gluLookAt'
collect2: ld returned 1 exit status
make[3]: *** [6dofhand] Error 1

can u please help me...

ZbuffeR
03-01-2011, 10:26 AM
You forgot to link to glu : add -lGLU to your command line.