PDA

View Full Version : Linker errors in Kdevelop; missing libraries?



12-28-2001, 11:56 AM
i am using kdevelop to compile the "white box on black background" (very simple) example from the red book. i already #include 'd <GL/glut.h> but i get linker errors (undefined references) for all my glut calls. my distribution is mandrake 8.1. could i be missing the gl/glut libraries? where can i download them? Thanks

zerodeux
12-28-2001, 04:47 PM
You need to link with the GLU library too. Go in Project/Options/Linker Options, add '-lGLU' in the 'additional libraries' entry.

01-10-2002, 01:01 PM
you need to link to gl, glu, glut and math