How to Download and Install C Cpp Toolset ( gcc g++ gdb ) in Windows 10 using mingw-64 and msys2
In this tutorial you will learn How to How to Download and Install C Cpp Toolset ( gcc g++ gdb ) in Windows 10 using mingw-64 and msys2
Video Tutorial :
First we will download and install msys2. After that we open the msys2 terminal and type the following commands.
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
To install gcc and g++ for C and C++ ( 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
To install the debugger ( gdb ) for C and C++ ( For bit )32
pacman -S mingw-w64-i686-gdb
Check the program versions
gcc version : gcc --version
g++ version : g++ --version
gdb version : gdb --version