First, don't use MinGW shell, don't know if it's possible to compile under the linux emulator kinda thing....
Soltion: make sure windows command prompt can find you g++ or gcc executable
if you installed minGW at c:\mingw, then add PATH to windows : c:\minGW\bin
Because in the bin directory is the compile program g++ and gcc.

First website gave me the overal syntax, but I was missing a few switches. You have to specify where the library is with the -L switch.
And you need to specify where your header files are located, with the -I switch.
Lastly you need to add a third switch otherwise it will say undefined reference to gluperspective@32, solution for last is to add the switch -lglu32

OpenGL super bible chapter 1 undifined ref, Codeblocks, MingW

Compiling a program with the command prompt has succeeded. Now I tried the C / C++ IDE called Codeblocks.
It has a complete package, which includes, Codeblocks + MingW. On top of that, it is supplied with OpenGL and Glut project categories.
Compiling works like a charm with basic opengl and Glut programs.

But I m stuck with the following source, which is from the OpenGL Superbible version 4.

The functions must come from somewhere , but I really have no clue where...
I remember that Glut has functions that start with glut....
So I tried including glut.h or freeglut.h as well, but I get the same errors...

Is it possible that a library file is very specific for one C/C++ IDE? That I have the wrong compiled Library?
I used a library which was contained for Visual studio 2010... and I use Code blocks 12.11 now...