Kdevelop 4 link glew and freeglut

396 Views Asked by At

How can I link glew and freeglut to my project using Kdevelop 4? The functions of glut and opengl shows in code completion suggestion list but it fails with undefined reference to glut functions when I build it. How and what things do I have to set up? paths? flags?

1

There are 1 best solutions below

0
On

You need to add the linker flags -lGLEW -lglut