PDA

View Full Version : Another noob question



stolas
04-26-2004, 01:16 PM
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
:D

chowe6685
04-26-2004, 01:46 PM
you are not linking to the glut library

stolas
04-26-2004, 02:10 PM
Thank you :-)

But how do I ?

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

Sorry about that

nexusone
04-26-2004, 04:35 PM
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
:D