What is the preferred way to compile .c/.cpp files similar to gcc (Linux) in cmd (Windows)? What are the most common compilers?
I've never used this but it looks like it might be what you're looking for. http://www.mingw.org/
I think most people use Cygwin. http://www.cygwin.com/