Another noob question

Hello everybody,
I have been hesitating posting this question for hours (hmm maybeI am exagerating) but since it is too frustrating, here it is:
Whenever I am trying to compile a glut example, my compiler (dev-cpp) will make me a linker error telling me “undefined reference to glutPostRedisplay” for instance (as well as 40 others), the thing is that I am sure I specified correctly the include and bin directories…
Where can this come from ?
Thank you very much
:smiley:

you are not linking to the glut library

Thank you :slight_smile:

But how do I ?

hehe (you must be like… ho my god, go back to c++ learnling!)

Sorry about that

You need to add the openGL library’s to the linker options.

In DEV-C you need to go under project options and under linker files add the following librarys: -lopengl32 -lglu32 -lglut32

Originally posted by stolas:
Hello everybody,
I have been hesitating posting this question for hours (hmm maybeI am exagerating) but since it is too frustrating, here it is:
Whenever I am trying to compile a glut example, my compiler (dev-cpp) will make me a linker error telling me “undefined reference to glutPostRedisplay” for instance (as well as 40 others), the thing is that I am sure I specified correctly the include and bin directories…
Where can this come from ?
Thank you very much
:smiley: