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

Поделиться
HTML-код
  • Опубликовано: 31 июл 2024
  • 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 or windows 11 computer using msys2 Software Distribution and Building Platform.
    Topics :
    00:00 Introduction and Downloading Msys2
    03:12 Installing Mysys2 Updating Packages
    07:35 Installing gcc and g++
    12:14 Installing gdb debugger
    16:00 Setting up Path Environment Variable
    18:48 Check gcc g+= and gdb version in cmd
    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
    www.LearningLad.com
    Social Media
    Facebook / learninglad
    Twitter / learningladedu
    Instagram / learningladofficial

Комментарии • 2,8 тыс.