Compiling a Win32 GUI app (without a console) using MinGW and Eclipse

I'm using the eclipse IDE with MinGW as my compiler, to make a Win32 GUI app. I want to get rid of the console, but compiling the program with -mwindows option has no effect and the console is st...