Help is really appreciated.

Using software:
Netbeans 7.2.1
Mingw , and it's console

My settings:


I tried some of the online tutorials, but I still get errors like:
cannot find -iGL
cannot find freeglut.h

My questions:
- What are the settings for Netbeans?
- what is the way to compile openGL programs?
- if possible : Is there a complete install tutorial for openGL,glew and freeglut, Mesa?

I have been trying for 2 days, nothing works. I only succeeded compiling it under Linux with the console. Netbeans does not compile.