Is there a gcc equivalent in windows?
Visual studio is ok, but i really hate the fact that you have to go through all the process of project creation just to compile one source 开发者_如何学Cfile. Is there any compiler in windows that allows compilation directly from directory?
A gcc equivalent in Windows would be... gcc.
I guess a better answer is MinGW, which is Minimalist GNU for Windows.
Yeah, for one there's cl
(the compiler used by Visual Studio). Any half-decent compiler will have a CLI so any C compiler for Windows from bcc
to Digital Mars should do the trick.
The Visual Studio compiler allows you to compile and link source files from the commandline, just like GCC does. Just open a Visual Studio command prompt, and call cl
with the appropriate options.
The "GCC for Windows" you want also exists, it's called MinGW, but you may want the more capable mingw-w64
There's cygwin
, a complete GNU environment that runs on Windows. It includes gcc
.
http://sourceware.org/cygwin/ or http://www.mingw.org/
Take a look at Cygwin or MinGW
精彩评论