GLUT + DevCpp linking problem

I’ve got some problem with linking, when I add no -lglut32 -lglut then I get one error (there is no program yet, I’m just testing)

[Linker error] undefined reference to `glutInitDisplayMode’

but when I add those parameters to linker, then I get more errors:

[Linker error] undefined reference to wglSwapBuffers@4' [Linker error] undefined reference toGdiFlush@0’
[Linker error] undefined reference to `joyReleaseCapture@4’
(… there are more but there’s no reason to paste them)

What can I do about this ?

//adding -lglu32 gives nothing.

I think you also need to include Windows GDI libs, too. The full linker option may look like:
-lglut32 -lglu32 -lopengl32 -lwinmm -lgdi32

It is much easier to start with OpenGL/GLUT project template in Dev-C++.

songho: it didn’t help, but thanks for your answer. Well, starting with a template is maybe the best idea by now.
Greetings, L0R

1 start a project from template
2 add the static lib file to project manually