I'm using mingw on windows and I put -mwindows to the linker commands in my IDE