User forums > Help

Problem with glut32

(1/1)

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 :

--- 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'

--- End code ---

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.

--- End quote ---

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. ;)

Navigation

[0] Message Index

Go to full version