DEV Community

Cover image for How to install MinGW on Windows (10, 11)?
Ravi Gabriel Valentim
Ravi Gabriel Valentim

Posted on

How to install MinGW on Windows (10, 11)?

  1. First, let's access the official MinGW website:
    mingw.org

  2. Now let's go to the downloads tab, which is in the upper left corner:

Home page of mingw.org.

  1. On the download page choose option MingW-W64-builds:

download page

  1. Now click the direct link to github:

download page

  1. On the github page, choose the following option: x86_64-12.2.0-release-posix-seh-rt_v10-rev0.7z

GitHub page

Now you will download the file and unzip it using winrar (or any other file extraction tool).

After unzipping the file, go to the location where you unzipped it
and copy the path of the bin folder:

folder path

That done, to windows settings -> system -> about -> advanced system settings.

Click environment variables -> system variables -> path -> edit -> new -> paste the bin folder path you copied earlier.

Okay, now open your terminal (win + r) and type cmd and type the following command g++ --version, if everything went well, the g++ version will appear.

Top comments (0)