View Single Post
Old 13th January 2021, 00:14   #3  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
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:
Code:
pacman -Syu
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
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 13th January 2021 at 00:30.
LoRd_MuldeR is offline   Reply With Quote