The heart of the Mingw-w64 project is headers and support libraries to
run the output of GCC on Windows. Since Mingw-w64 is neither the home of
GCC nor of binutils, several sets of installation packages which combine
them are available.
In addition, the sources are available but most people will want to grab
binaries directly..
Version | Host | GCC / Mingw-w64 Version | Languages | Additional Software in Package Manager | |
---|---|---|---|---|---|
Arch Linux |
Arch Linux | 12.2.0/10.0.0 | Ada, C, C++, Fortran, Obj-C, Obj-C++ | many | |
Cygwin |
Rolling | Windows | 11.3.0/10.0.0 | C, C++, Fortran, Obj-C | many |
Debian |
Debian 9 (Stretch) | 6.3.0/5.0.1 | Ada, C, C++, Fortran, Obj-C, Obj-C++, OCaml | 9 (gdb, libassuan, libgcrypt, libgpg-error, libksba, libnpth, nsis, win-iconv, zlib) | |
Debian 10 (Buster) | 8.3.0/6.0.0 | Ada, C, C++, Fortran, Obj-C, Obj-C++ | |||
Debian 11 (Bullseye) | 10.2.1/8.0.0 | ||||
Fedora |
Fedora 36 | 11.2.1/9.0.0 | Ada, C, C++, Fortran, Obj-C, Obj-C++ | many | |
Fedora 37 | 12.2.1/10.0.0 | ||||
LLVM-MinGW | 20220906 | Windows, Linux | LLVM 15.0.0/trunk | C, C++ | make, Python |
w64devkit | 1.17.0 | Windows | 12.2.0/10.0.0 | C, C++, Fortran |
7 (busybox, cppcheck, ctags, gdb, make, nasm, vim) |
MacPorts |
Rolling | macOS | 12.2.0/10.0.0 | C, C++, Fortran, Obj-C, Obj-C++ | 1 (nsis) |
MingW-W64-builds | Rolling | Windows | 12.2.0/10.0.0 | C, C++, Fortran | 4 (gdb, libiconf, python, zlib) |
MSYS2 |
Rolling | Windows | 12.2.0/trunk | Ada, C, C++, Fortran, Obj-C, Obj-C++, OCaml | many |
WinLibs.com | Rolling | Windows | 12.2.0 | Ada, C, C++, Fortran, Obj-C, Obj-C++, Assembler | Package manager: work in progress (will offer > 2500 packages) |
Ubuntu |
18.04 Bionic Beaver | 7.3.0/5.0.3 | Ada, C, C++, Fortran, Obj-C, Obj-C++ | 9 (gdb, libassuan, libgcrypt, libgpg-error, libksba, libnpth, nsis, win-iconv, zlib) | |
20.04 Focal Fossa | 9.3.0/7.0.0 | ||||
22.04 Jammy Jellyfish | 10.3.0/8.0.0 | ||||
22.10 Kinetic Kudu | 10.3.0/10.0.0 | ||||
Arch Linux
Installation:
- Community repository (toolchain)
- AUR repository (additional packages)
Ubuntu
Installation: through integrated package manager.
Mingw-w64 packages on Ubuntu
Cygwin
Cygwin is a Unix-like environment and command-line
interface for Microsoft Windows. Its core is the cygwin1.dll library which
provides POSIX functionality on top of the Win32 API. It can be used as a build
environment which targets Windows directly and for which output doesn’t depend
on cygwin1.dll.
Installation is done through cygwin’s package manager:
setup.exe.
As part of the numerous packages in cygwin, there are cross-compilation
toolchains which target both 32 bits and 64 bits; their names start with
“mingw64-”.
Once they are installed, they should be used according to the general
cross-compilation approach.
Debian
Installation: through integrated package manager.
Mingw-w64 packages on Debian
Fedora
Installation: through integrated package manager.
LLVM-MinGW
LLVM-MinGW is a toolchain built with Clang, LLD, libc++, targeting
i686, x86_64, arm and aarch64 (ARM64), with releases both for running
as a cross compiler from Linux and for running on Windows. It supports
Address Sanitizer, Undefined Behaviour Sanitizer, and generating debug
info in PDB format.
Installation: GitHub
w64devkit
w64devkit is a portable C and C++ development kit for x64 (and x86) Windows.
Included tools:
- Mingw-w64 GCC : compilers, linker, assembler
- GDB : debugger
- GNU Make : standard build tool
- busybox-w32 : standard unix utilities, including sh
- Vim : powerful text editor
- Universal Ctags : source navigation
- NASM : x86 assembler
- Cppcheck : static code analysis
The toolchain includes pthreads, C++11 threads, and OpenMP. All included
runtime components are static.
Installation: GitHub
MacPorts
To install just the 32-bit or just 64-bit compiler with dependencies, use:
sudo port install i686-w64-mingw32-gcc
sudo port install x86_64-w64-mingw32-gcc
A shortcut to install both:
sudo port install mingw-w64
Here is the list of Mingw-w64 packages on MacPorts.
Mingw-builds
Installation: GitHub
WinLibs.com
Standalone MinGW-w64+GCC builds for Windows, built from scratch (including all depencencies) natively on Windows for Windows.
Downloads are archive files (.zip
or .7z
). No installation is required,
just extract the archive and start using the programs in mingw32bin
or mingw64bin
.
This allows for a relocatable compiler suite and allows having multiple versions on the same system.
Also contains other tools including:
* GDB — the GNU Project debugger
* GNU Binutils — a collection of binary tools
* GNU Make — a tool which controls the generation of executables and other non-source files
* Yasm — The Yasm Modular Assembler Project
* NASM — The Netwide Assembler
* JWasm — A free MASM-compatible assembler
Flavors:
* separate packages for 32-bit (i686) and 64-bit (x86_64) Windows
* separate packages for MSVCRT and UCRT builds
* only POSIX threads builds (which also include Win32 API thread functions)
* exception model: Dwarf for 32-bit (i686) and SEH for 64-bit (x86_64)
Installation: Download from winlibs.com and extract archive (no installation needed).
MSYS2
Installation: GitHub
Sources
Tarballs for the mingw-w64 sources are hosted on
SourceForge.
The latest version from the 10.x series is 10.0.0.
The latest version from the 9.x series is 9.0.0.
The latest version from the 8.x series is 8.0.2.
The latest version from the 7.x series is 7.0.0.
The latest version from the 6.x series is 6.0.0.
The latest version from the 5.x series is 5.0.4.
The old wiki has instructions for building
native
and
cross
toolchains.
Details on how to get the mingw-w64 code from Git and an Git-web viewer are
available on
SourceForge.
Unsorted complementary list
Darwin/Mac OS X
The existing Darwin binaries have been built through buildbot in 2013 and links
to them can be found on the dedicated
page.
OpenSUSE
The OpenSUSE Linux
distribution also has a
large and well-maintained set of packages for cross-compilation.
Rubenvb
Rubenvb has built a number of toolchains including some for less common setups.
They are split into two categories: toolchains targeting
Win32
or
Win64.
GCC with the MCF thread model
GCC with the MCF thread model is a series of x86
and x64 native toolchains built by LH_Mouse. The MCF thread model involves the
mcfgthread library to provide minimum
yet complete C++11 thread support. Disregarding POSIX or Windows XP
compatibility, it implements (hopefully the most) efficient mutexes and
condition variables that are competitive with even native slim reader/write
(SRW) locks and condition variables since Windows Vista.
Store of binaries on SourceForge
A very large number of other binaries and sources are hosted in the File
Release System on Sourceforge which
might have what you are after.
mingw-w64
MinGW-W64 GCC-8.1.0 Mirror
Official Website: MinGW-W64
Installation Instructions
- Determine the MingGW architecture:
- Version: 8.1.0
- Architecture: i686 or x86_64
- i686: is the 32-bit version
- x86_64: is the 64-bit version of the OS (Recommended)
- Threads: posix or win32
- posix: Enable C++11/C11 multithreading features. (Recommended)
- Note: Makes libgcc depend on libwinpthreads, so that even if you don’t directly call pthreads API, you’ll be distributing the winpthreads DLL. There’s nothing wrong with distributing one more DLL with your application.
- win32: No C++11 multithreading features.
- posix: Enable C++11/C11 multithreading features. (Recommended)
- Exception: dwarf or sjlj
- seh: Available for 64-bit GCC 4.8 (x86_64) (Recommended)
- Performance: Zero overhead exception
- dwarf: Available for 32 bit only (i686).
- Performance: No permanent runtime overhead.
- sjlj: Available for 32 bit and 64 bit.
- Performance: ~15% in exception heavy code
- seh: Available for 64-bit GCC 4.8 (x86_64) (Recommended)
- Build revision: 0
Recommended for Windows 10 x64:
- Version = 8.1.0
- Architecture = x86_64 (x64 OS)
- Threads = posix (Allow threading)
- Exception = seh (Zero overhead exception)
- Build revision = 0
- Download the appropriate 7-zip (*.7z) file to your local machine:
- ARCHITECTURE-VERSION-THREAD-EXCEPTION-*.7z
Recommended for Windows 10 x64:
- x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z
-
Unzip the 7-Zip file to C:mingw-w64mingw64
-
Add C:mingw-w64mingw64bin to PATH
Batch File:
echo off
set PATH=C:mingw-w64mingw64bin;%PATH%
rem echo %PATH%
rem cd "C:mingw-w64mingw64bin"
cd "C:"
"C:WINDOWSsystem32cmd.exe"
- Open a new cmd.exe and verify the GCC compiler is setup.
Background
The mingw-w64-install.exe online installer is a minimal application that downloads the correct MingGW architecture version from SourceForge using a file lookup repository.txt here:
Home / Toolchains targetting Win32 / Personal Builds / mingw-builds / installer / repository.txt
Formatted as:
8.1.0|x86_64|posix|sjlj |rev0 |http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/sjlj/x86_64-8.1.0-release-posix-sjlj-rt_v6-rev0.7z
8.1.0|i686 |posix|sjlj |rev0 |http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/8.1.0/threads-posix/sjlj/i686-8.1.0-release-posix-sjlj-rt_v6-rev0.7z
8.1.0|i686 |posix|dwarf|rev0 |http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/8.1.0/threads-posix/dwarf/i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z
8.1.0|x86_64|posix|seh |rev0 |http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z
8.1.0|i686 |win32|sjlj |rev0 |http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/8.1.0/threads-win32/sjlj/i686-8.1.0-release-win32-sjlj-rt_v6-rev0.7z
8.1.0|x86_64|win32|sjlj |rev0 |http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-win32/sjlj/x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.7z
8.1.0|x86_64|win32|seh |rev0 |http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-win32/seh/x86_64-8.1.0-release-win32-seh-rt_v6-rev0.7z
8.1.0|i686 |win32|dwarf|rev0 |http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/8.1.0/threads-win32/dwarf/i686-8.1.0-release-win32-dwarf-rt_v6-rev0.7z
The installer downloads the appropriate 7-Zip MinGW file and extracts the content to C:wingw-w64 or C:Program Files (x86)mingw-w64. The mingw64bin is then registered with PATH environment.
Project Description
This is the official download site for the latest packages originating from the MinGW.OSDN Project, (formerly the MinGW.org Project; however, that domain is no longer associated with this project).
MinGW is a native Windows port of the GNU Compiler Collection (GCC), with freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. Although (currently) offering only a 32-bit compiler suite, all of MinGW’s software will execute on the 64bit Windows platforms.
MinGW is a registered trademark of Software in the Public Interest Inc., registration number 86017856; this trademark has been registered on behalf of the MinGW.OSDN Project, and its use by any other project is unauthorized.
Download
-
Latest Release
- MinGW.OSDN Windows System Libraries (WSL) Windows API (32-bit), Version 5.4.2 (Date: 2021-04-12)
- MinGW.OSDN Windows System Libraries (WSL) C-Runtime Library (32-bit), Version 5.4.2 (Date: 2021-04-12)
- MinGW.OSDN Windows System Libraries (WSL) C-Runtime Library (32-bit DLL), Version 5.4.2 (Date: 2021-04-12)
- MinGW.OSDN Compiler Collection (GCC) GCC-9.2.0 Licence (Date: 2021-02-02)
- MinGW.OSDN Compiler Collection (GCC) GCC-9.2.0 Source Code (includes MinGW.org patches) (Date: 2021-02-02)
Review
Your rating
Review this project
Your rating
Review this project
2023-02-04 13:28
Review by i hate C
Rating:
(0 of 0 people found this review helpful)
2023-02-02 13:01
Review by Kim
Rating:
(0 of 1 people found this review helpful)
2022-12-07 14:04
Review by friend
Rating:
(12 of 23 people found this review helpful)
Review List
Recent Activities
2022-12-31
23:16
MinGW — Minimalist GNU for Windows
2022-12-03
07:04
MinGW — Minimalist GNU for Windows
06:40
MinGW — Minimalist GNU for Windows
[Git] New repository ‘mingw-pkgspecs’ has been created
2022-11-10
06:51
MinGW — Minimalist GNU for Windows
2022-11-05
06:49
MinGW — Minimalist GNU for Windows
[Git] The configurations for repository ‘mingw-org-wsl’ have been updated
Show history
My MinGW distribution («distro») is x64-native and currently contains GCC 11.2.0 and Boost 1.77.0.
mingw-18.0.exe (96.9 MB) : This is a self-extracting archive. It’s incredibly easy to install; see How To Install below.
My build scripts are available on GitHub, and they’re also stored within the distro itself.
* With jpegtran.
** With pcregrep and pcre2grep.
*** Only sort, uniq, and wc.
I recommend that anyone who is learning Standard C++ and who uses Windows for a primary development environment should use two compilers: the most modern version of Microsoft Visual C++ and the most modern version of GCC, the GNU Compiler Collection. Using two compilers that conform closely to the Standard subjects your code to more strenuous trials than using a single compiler would.
MinGW is a port of GCC to Windows. It is free of charge and simple to use (well, as simple as toolchains ever get). It produces standalone Windows executables which may be distributed in any manner. MinGW’s official website mingw-w64.org provides various builds, but I maintain my own distro because I demand complete control. (It’s a long story, but mingw-w64 forked from mingw.org. Although my distro was based on mingw.org for many years, I now consider mingw-w64 to be the one true MinGW.)
Please note that I did not write any of the components of my distro. I simply compiled them and packaged them together.
First, run the self-extracting archive. It’ll ask you for a directory:
Whatever you say, it’ll create a MinGW subdirectory there. I recommend saying C:
(as in the screenshot) so it’ll create C:MinGW
.
Second, click Extract. It’ll display a progress bar:
Just wait until it’s done. I’ve gone to great lengths to make the distro as small as possible, but Boost and git are very large, so there’s a lot of stuff to extract.
Third, open the root of the distro, which is C:MinGW
if you followed my recommendation. There, you’ll find two batch files and README_STL.txt
. Inside the readme, there are copies of this webpage’s Contents and History sections in case you forget which version of the distro you have or what it contains. There are also the following usage instructions:
Finally, type g++ --version
in your Command Prompt and hit Enter. You should see something like this:
If you see something like that, then you have successfully installed MinGW.
Simply replace C:MinGW
.
I shouldn’t need to warn you about extracting a newer version of the distro into a directory which already contains an older version. That would create a mess.
Simply delete C:MinGW
.
components-18.0.7z (96.4 MB) : My distro is formed by extracting these binary components into a single directory, then adding the batch files and readme. These binary components are useful if you want to create a subset of my distro, or if you want to update a few components without having to rebuild everything.
Building the components from scratch requires a few things. First, you’ll need their sources, which you can obtain from their official websites. Second, you’ll need my build scripts and patches, which are in the scripts-VERSION subdirectory in the root of the distro. Finally, the build scripts must be run in MSYS2, and README.md in scripts-VERSION explains how to set that up.
THE SOFTWARE IS PROVIDED «AS IS», WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
https://nuwen.net/mingw.html (updated 10/30/2021)
Stephan T. Lavavej
Home: stl@nuwen.net
Work: stl@microsoft.com
This is my personal website. I work for Microsoft, but I don’t speak for them.
Each software is released under license type that can be found on program pages as well as on search or category pages. Here are the most common license types:
Freeware
Freeware programs can be downloaded used free of charge and without any time limitations. Freeware products can be used free of charge for both personal and professional (commercial use).
Open Source
Open Source software is software with source code that anyone can inspect, modify or enhance. Programs released under this license can be used at no cost for both personal and commercial purposes. There are many different open source licenses but they all must comply with the Open Source Definition — in brief: the software can be freely used, modified and shared.
Free to Play
This license is commonly used for video games and it allows users to download and play the game for free. Basically, a product is offered Free to Play (Freemium) and the user can decide if he wants to pay the money (Premium) for additional features, services, virtual or physical goods that expand the functionality of the game. In some cases, ads may be show to the users.
Demo
Demo programs have a limited functionality for free, but charge for an advanced set of features or for the removal of advertisements from the program’s interfaces. In some cases, all the functionality is disabled until the license is purchased. Demos are usually not time-limited (like Trial software) but the functionality is limited.
Trial
Trial software allows the user to evaluate the software for a limited amount of time. After that trial period (usually 15 to 90 days) the user can decide whether to buy the software or not. Even though, most trial software products are only time-limited some also have feature limitations.
Paid
Usually commercial software or games are produced for sale or to serve a commercial purpose.
MinGW, a contraction of “Minimalist GNU for Windows”, is a minimalist development environment for native Microsoft Windows applications.
Downloading MinGW
- open http://www.mingw.org/
- Click Download Button as shown in the picture below.
3. As soon as you click download button on mingw website The following page will open in your browser (from the SourceForge.net web site).
4. The following exe file will be downloaded with the name mingw-get-setup.exe
5. Click mingw-get-setup.exe
6. Click install
7. Click continue
8. Click continue
9. The following pop-up window will appear. Pleas make sure that you selected all the check-boxes. e.g. mingw32-base, mingw32-gcc=g++, msys-base and so on.
10. Click on Installation > Apply Changes as shown in the picture below.
11. wait for the process to complete. once you see successful installation message close the window. Click Close.
12. Now we will set environment variable to use gcc and g++ command from terminal.
Windows 10 and Windows 8
- In Search, search for and then select: System (Control Panel)
- Click the Advanced system settings link.
- Click Environment Variables. In the section System Variables, find the
PATH
environment variable and select it. Click Edit. If thePATH
environment variable does not exist, clickNew
.
- In the Edit System Variable (or New System Variable) window, specify the value of the
PATH
environment variable. - Copy C:MinGWbin .
- Click OK.
- Close all remaining windows by clicking OK.
- Reopen Command prompt window, and type
gcc
. if you see the following output as shown in the picture below the mingw is installed successfully.
Video : How To install MinGW on Windows 10 (GCC & G++)
- MinGW
Обновлено
2018-10-27 01:51:57
Совместимость
Windows XP, Windows Vista, Windows 7
Описание
MinGW — в это приложение входит необходимый комплект инструментария для линковки и компилирования программ. MinGW для Windows – это набор приспособлений, который позволит разрабатывать программное обеспечения для создания приложений.
Загрузить MinGW и использовать как компилятор разрешено бесплатно. У утилиты лицензия GNU GPL – открытое лицензионное соглашение. Для компиляции указывают имя компилятора, имя исходного файла и с каким расширением и куда будет сохранён скомпилированный исполняемый файл. Такая программа запускается через строку команд.
Перечислим основные особенности
- В программу включены дополнительные наборы утилит. Интегрирован пакет инструментария для старта скриптов.
- В приложении доступны порты, полный набор MSYS и некоторые пакеты открыты для загрузки.
- Установка компактна и не вызывает проблем.
- Программа MinGW постоянно обновляется и совершенствуется.
- Компиляция C++ кода и линковка медленны.
- Код, сгенерированный приложением, запускается быстро.
Скачать бесплатно MinGW для компьютера без регистрации можно на нашем сайте.
Версии
I am desperately trying to install the latest version of mingw-w64 to get acess to gcc 10 on windows 10.
I used the online installer for mingw-w64 in the past, but it is still stuck in 2018 on 8.1.0 and seems to be abandoned.
So i tried installing it manually.
On SourceForge or the GitHub Mirror you seem to only get a chunk of code without any clear instructions on what do do, how to build and install it. The only installation instructions that i managed to find required you to already have a working gcc installed (very helpful if that is what you want to get installed in the first place).
On their website and wiki there is a precompiled binary package mentioned. But the only one that i could find was horribly outdated as well.
Comparing this with the installation process of clang or the microsoft build tools, it actually blows my mind how something as basic as installation can be this confusing.
Maybe it’s just me missing the obvious , but how do you actually install this thing?
asked Apr 29, 2020 at 8:29
2
GCC 10 is officially released.
The personal build for Windows (MinGW-w64) that can be downloaded from https://winlibs.com requires no installation, just extract to a folder.
answered Apr 30, 2020 at 11:29
Brecht SandersBrecht Sanders
5,7821 gold badge14 silver badges38 bronze badges
4
Building GCC on Windows from source code is very difficult and cannot be recommended to beginners. Moreover, GCC 10 has not yet been officially released and you may need to wait a few more weeks to get it.
If you want an up-to-date GCC in Windows (currently version 9.3), I recommend downloading and installing the MSYS2 package. Once you install it, launch it using the «MinGW64» icon and install the correct compiler in the terminal. For details, see this question: How to install MinGW-w64 and MSYS2?
Once you have done this, you can forget about MSYS2 and simply use the directory with the binaries in your PATH
.
The maintainers of MSYS2 are very keen in supporting bleeding edge software, so once GCC 10 is released, you will be able to update to it (using the command pacman -Syu
)
very soon.
answered Apr 29, 2020 at 10:44
jacobjacob
1,5151 gold badge12 silver badges25 bronze badges
I recommend obtaining MinGW through MSys2 https://www.msys2.org/
First install MSys2, then perform a full update by first updating the package database and updating pacman
pacman -SySu
After the update is done it will ask you to close the terminal without exiting to shell. Do so, then perform a full update by running
pacman -Su
after which you can install the mingw-w64 packages. Use
pacman -Ss mingw
to list all available packages. Install with
pacman -S ${PACKAGE_NAME}
answered May 13, 2020 at 12:04
datenwolfdatenwolf
157k12 gold badges184 silver badges294 bronze badges
0
Installing via MSYS2 will give you gcc 10.1 .
You can treat MSYS2 as a package manager for keeping gcc up to date, and not use its shell if you like. Its packages include standalone 32-bit gcc, standalone 64-bit gcc, and MSYS2-target gcc. It is a very similar process to installing gcc via package manager on a Linux system.
how something as basic as installation can be this confusing
This is not uncommon with open source when there’s no customer income stream to pay developers to build and maintain a smooth installer. Someone has to do the work of hosting and maintaining binary builds and often people will do it for a while out of the goodness of their heart, and then move on, as seems to have happened with the «official» mingw-builds installer.
So while the solutions you see on this thread today will work for now, in a few years’ time the answers may be different
answered May 13, 2020 at 12:06
M.MM.M
137k21 gold badges201 silver badges349 bronze badges
Go to Environment Variables. You should find it by searching for it in the search pane of control panel. As soon as you click Environment variables, you should see a new pop-up. Click the edit under System Variable. Navigate till you find ‘PATH’. Click Edit.
Now very important steps. You will see an existing address under ‘Variable Value’. Copy that (preferably to a Text doc). In that address, Delete the address containing mingw32 between two semicolons. And now add the address of the newly installed version’s ‘bin’ folder (anywhere you want, importantly,between two semicolons).
Then paste the whole new address back again to the Variable Value field. Click OK for everything.
It should mostly work now. This is what I did. You can check if it updated by running ‘g++ —version’ in the CMD.
answered May 14, 2020 at 12:28