Code::Blocks Forums

User forums => Help => Topic started by: InddZen on September 15, 2006, 01:37:00 pm

Title: Problem with glut32
Post by: InddZen on September 15, 2006, 01:37:00 pm
Hi,

I've download the glut devpak and install it.

While compiling I've got a lot of errors and I don't understand why  :? I've linked the librairies, put the dll in the bin directory...

Here's first build log's lines :
Code
Linking console executable: Mesh Stretching.exe
C:\Program Files\CodeBlocks\lib\libglut32.a(glut_swap.o):glut_swap.c:(.text+0x71): undefined reference to `wglSwapBuffers@4'
C:\Program Files\CodeBlocks\lib\libglut32.a(glut_event.o):glut_event.c:(.text+0x319): undefined reference to `glFinish@0'

So if anyone have an idea...
Title: Re: Problem with glut32
Post by: sethjackson on September 15, 2006, 05:51:58 pm
You need to link in the OpenGL libraries too (opengl32, glu32).....

Title: Re: Problem with glut32
Post by: InddZen on September 15, 2006, 08:59:14 pm
I did it and I've got same errors.
Title: Re: Problem with glut32
Post by: sethjackson on September 15, 2006, 09:26:17 pm
I did it and I've got same errors.

Ok is your project set to GUI?

You will ned to set it to GUI otherwise it won't work.

Oh BTW make sure you have gdi32 linked in too. ;)