Yea - I'm also surprised that the compiler didn't complain. gcc instantly said it couldn't be found.
If you want to use gcc, I'd say download
cygwin for your Windows computer and write the programs in whatever (Vim, Notepad, etc.), then open up a Cygwin shell, go to the right directory, and compile with gcc.