In this tutorial you will learn to download and install MinGW-w64 ( Minimalist GNU for Windows ) toolset ( ( gcc g++ gdb ) ) for developing C and Cpp programs on windows 10 computer using msys2 Software Distribution and Building Platform.
Topics :
First we will download and install msys2.
After that we use the series of commands to install packages and update system.
Commands used :
Update the package database and base packages using
pacman -Syu
Update rest of the base packages
pacman -Su
Now open up the Msys MinGW terminal
To install gcc and g++ for C and C++
For 64 bit
pacman -S mingw-w64-x86_64-gcc
For 32 bit
pacman -S mingw-w64-i686-gcc
To install the debugger ( gdb ) for C and C++
For 64 bit
pacman -S mingw-w64-x86_64-gdb
For 32 bit
pacman -S mingw-w64-i686-gdb
To check
gcc version : gcc --version
g++ version : g++ --version
gdb version : gdb --version
After installing these programs, we need to set the Path environment variable.
#developer #programming