PDA

View Full Version : undefined reference under kdevelop and console



balN
02-24-2004, 09:30 PM
hi,i started a week back ,im currently following openGL programming guide and reference manual,using glut to call a window,
i ve included gl.h, glu.h & glut.h ,a simple sample code from the book doesnt run says undefined references to all enlisted gl*() functions,what does this mean,os is mandrake 9,kde,and nv geforce 2 mx..

i tried gcc -L<lib path>
it still doesnt work...anyone..?

dmantamp
02-24-2004, 09:51 PM
Hi,

Try gcc -L<lpath> -lgl [-lglu]

Hope libgl.* and libglu.* is available in lpath.

Note :

nexusone
02-25-2004, 04:53 AM
In kde are you using K-develope?
Look under project options and linker settings, add -lGL -lGLU -lglut "Note case is important"



Originally posted by balN:
hi,i started a week back ,im currently following openGL programming guide and reference manual,using glut to call a window,
i ve included gl.h, glu.h & glut.h ,a simple sample code from the book doesnt run says undefined references to all enlisted gl*() functions,what does this mean,os is mandrake 9,kde,and nv geforce 2 mx..

i tried gcc -L<lib path>
it still doesnt work...anyone..?