How to Download and Install C Cpp Toolset ( gcc g++ gdb ) in Windows 10 using mingw-64 and msys2

150 Aufrufe
Published
In this tutorial you will learn to download and install MinGW-64 ( 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.

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.

Our Website
https://www.LearningLad.com

Social Media
Facebook https://www.facebook.com/LearningLad
Twitter https://www.twitter.com/LearningLadEdu
Instagram https://www.instagram.com/LearningLadOfficial
Kategorien
PC (Windows/Mac/Linux) Anleitungen
Kommentare deaktiviert.