MinGW, a contraction of “Minimalist GNU for Windows”, is a minimalist development environment for native Microsoft Windows applications.
- A port of the GNU Compiler Collection (GCC), including C, C++, ADA and Fortran compilers;
- GNU Binutils for Windows (assembler, linker, archive manager);
- A command-line installer, with optional GUI front-end, (mingw-get) for MinGW and MSYS deployment on MS-Windows;
- A GUI first-time setup tool (mingw-get-setup), to get you up and running with mingw-get.
Click: Installation > Apply Changes
Create a new text code.
Call gcc in cmd.
gcc test.c -o test
Click： Tools > Build System > New Build System
Ctrl + Shift + B to compile and run, or just press
Ctrl + B to run (if it has been compiled).