How to Compile C Source Code on Windows 10 using MinGW, GCC, and G++ with CMD command prompt. If you want to compile C and CPP source code from anywhere on Windows 10 then this software package is a must otherwise you might have to install Visual Studio or Block-Code or any other similar code IDE which comes pre-configured with MINGW, GCC, G++ compilers.