Author Topic: Problem with glut32  (Read 3682 times)

Offline InddZen

  • Multiple posting newcomer
  • *
  • Posts: 16
Problem with glut32
« 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...

sethjackson

  • Guest
Re: Problem with glut32
« Reply #1 on: September 15, 2006, 05:51:58 pm »
You need to link in the OpenGL libraries too (opengl32, glu32).....


Offline InddZen

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Problem with glut32
« Reply #2 on: September 15, 2006, 08:59:14 pm »
I did it and I've got same errors.

sethjackson

  • Guest
Re: Problem with glut32
« Reply #3 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. ;)