Author Topic: How to use FreeGLUT with Code::Blocks?  (Read 5152 times)

DaysShadow

  • Guest
How to use FreeGLUT with Code::Blocks?
« 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.
« Last Edit: March 27, 2010, 09:35:01 pm by DaysShadow »