Under Visual C++, I have played around with Glut/FreeGlut/GLFW. It seems that everyone of these projects adds a CMD window by default. I tried removing it going under:
Most linkers support options that automatically remove the console startup code.
I think on GCC it's called -mwindows