How to: Install gcc on Windows
GNU Compiler Collection or commonly known as gcc is a compiler used for r C, C++, Objective-C, and other programming languages. Setting up gcc in windows is a tedious task sometimes. below is a simple method to install gcc on windows 10 or 11.
- Download MinGW - Minimalist GNU for Windows from Sourceforge.
- After downloading run
mingw-get-setup.exe. - In MinGW installation manager, Select
mingw32-gcc-g++under Basic Setup.
- From the menu select Installation > Apply changes.
- The program will download and install the components.

- Once installation is completed you need to set up enviornment variables
- From Windows start, search
Enviornment Variables.
- Select Enviornment Variables under Advanced tab.
- Select
Pathunder System variables and click on edit.
- Add
C:\MinGW\binand save.
- Now open Terminal or command prompt and check
gcc --version.
If the command returns you the gcc version, then gcc is installed on your system and the paths are configured as expected.