Factsheet
Videos
Sourceforge still contains broken builds because nobody maintains the download links. Instead you can download from here: https://winlibs.com/.
- You'll want the Win 64 build with UCRT "C runtime" (the older MSVCRT was plain bad).
- Then pick a gcc version and thread model after preference - if you wish to do Windows programming then MCF threads, if you wish to emulate Linux then POSIX threads. If you aren't planning on multi-threading (still beginner) then it doesn't matter which thread model you pick.
https://sourceforge.net/projects/mingw/
download from this resource and then install .
I've been looking for the 64-bit MinGW Windows installer for a bit now and can't find it, people on forums just link back to the 32-bit installer saying "It works on 64-bit Windows". I have no clue how I found it before but I got it on my laptop about 2 months ago but can't find it now when I want to get it for my desktop. I'm currently running the newest version from the github but it doesn't come with libraries like GMP and every attempt to find / create it separately doesn't work
Download web installer from here: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download
You can get a MinGW-w64 build that requires no installation from http://winlibs.com/, just extract the archive and start using it. The site also explains how to use the compiler from Code::Blocks IDE.
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.
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.
