Code::Blocks Forums

User forums => Help => Topic started by: DaysShadow on March 25, 2010, 08:45:07 pm

Title: How to use FreeGLUT with Code::Blocks?
Post by: DaysShadow on March 25, 2010, 08:45:07 pm
Hello,

How may i start...i used freeglut for learning purposes with msvcpp 2008 and it worked so far with the binaries which are downloadable at the sourceforge site of freeglut.
Now i wanted to use freeglut with CodeBlocks so i compiled a static lib with codeblocks using gcc.
Then i told my learning project where to find the lib and the includes as well as telling the linker to link the lib but when i want to compile the project the log is telling me that there are references missing which seem to be all gl(ut) obtained functions.
I don't know what i'm doing wrong, maybe i have misunderstood the whole system of how to use freeglut or glut.

Language i am using is C and the learning project is mainly the lighthouse 3D GLUT tutorial which i changed a bit. I'm using Windows 7 Professional.
I'd be happy if someone could help me.

Also i hope i'm right in this section...if not so then i'm sorry  :?

Thank you
Kind regards
DaysShadow

EDIT: Well, as always the problems weren't caused by the program but by the user's incompetence...i hadn't linked glu32 and opengl32 libs so i got the errors.
If wanted, this thread can be removed.