News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Problem with glut32

Started by InddZen, September 15, 2006, 01:37:00 PM

Previous topic - Next topic

InddZen

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 :
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...

sethjackson

You need to link in the OpenGL libraries too (opengl32, glu32).....


InddZen

I did it and I've got same errors.

sethjackson

Quote from: InddZen on September 15, 2006, 08:59:14 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. ;)