Compiler Setup
Install Windows Mingw
-
Install MSYS2.
- Download the installer: msys2-x86_64-20210725.exe
- Run the installer.
- Use the default installation folder or specify one.

-
Setting up MSYS2.
- From the start menu run
MSYS2 MSYS. - To update the package database and base package type the command
pacman -Syuuntilthere is nothing todo.
- From the start menu run
-
Install the toolchain
- Type the command
pacman -S --needed base-devel mingw-w64-x86_64-toolchain. - Press
ENTERto select all package when the promptEnter a selection (default=all)show up.
- Type the command
-
Validating installation
- From the start menu run
MSYS2 MinGW 64-bit. - Type the command
g++ -v. - The command will show the target when installed.

- From the start menu run
Install Linux GCC
-
Update the package-list.
sudo apt-get update -
Install GNU compiler tools and the GDB debugger.
sudo apt-get install build-essential gdb -
Optional install manual pages about using GNU/Linux
sudo apt-get install manpages-dev -
Validate installation
make -vg++ -v gdb -v
Install macOS GCC
-
Install Homebrew package manager.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrewinstall/HEAD/install.sh)" -
Update Homebrew and validate brew instalation
brew update brew upgradebrew --version -
Install GCC and the GDB debugger via Homebrew
brew info gcc brew install gcc brew install gdb -
Removes previous application/dependency revisions saving considerable space.
brew cleanup -
Validate installation
make -vg++ -v gdb -v