Nowadays, by far the easiest way to obtain the Mingw-w64 toolchain with GCC or Clang as well as the required build tools (bash, make, etc. pp.) is by using the
MSYS2 project:
https://www.msys2.org/
Just install MSYS2 and then,
within the MSYS2 shell, you need to install the Mingw-w64 toolchain
once:
Code:
pacman -S mingw-w64-i686-toolchain
pacman -S mingw-w64-x86_64-toolchain
The same way you can add Clang, which generally works as a "drop-in replacement" for GCC and sometimes produces faster code and/or gives better diagnostic:
Code:
pacman -S mingw-w64-i686-clang
pacman -S mingw-w64-x86_64-clang
You probably want to install the
"base-devel" meta package too:
Code:
pacman -S base-devel
From then on, in order to update everything to the latest version, all you need to do is:
If, for some reason, you don't want to use MSYS2, have a look at the
WinLibs or
Win-builds web-sites:
http://winlibs.com/
http://win-builds.org/doku.php
And, indeed, at this time, the latest "release" version of GCC is 10.2.0