How to Install C and C++ compiler ( gcc g++ gdb ) on Windows 11 using mingw and msys2

preview_player
Показать описание
Learn how to install MinGW-w64 toolset gcc g++ gdb for developing C and Cpp programs on windows 11 computer using msys2 Software Distribution and Building Platform. #cprogramming #cpp #cppprogramming

📜 Follow these commands:

1️⃣ Run: pacman -Syu
2️⃣ Run: pacman -Su
3️⃣ Run: pacman -S mingw-w64-x86_64-gcc
4️⃣ Run: pacman -S mingw-w64-x86_64-gdb

🔧To compile a C file use this command:
gcc test.c -o test

🔧 For compiling a C++ file, use:

0:00 Introduction
0:37 Install MSYS2
1:49 Upgrade MSYS2
3:05 Install gcc
4:13 Install gdb
4:55 Set enviroment path
6:50 Testing

🎉 Get started with C and C++ programming on your Windows 11 machine and enjoy the process! 💻🚀
Рекомендации по теме
Комментарии
Автор

Thank you so much Nick! Worked like a charm!

johnseeley
Автор

Hey Very Very useful.... You are a Hero by sharing good information!!!

hwgnnrt
Автор

My job is software support. I work for a large conglomerate. Our customers include big banks. Our dev team builds the product using cygwin and mingw.

I don't need to build the product but I want to be able to debug it using gdb.

The corporate security software wouldn't let me install cygwin because cygwin setup is not signed by a trusted certificate. I just downloaded msys2. It's also not signed.

Who can satisfy corporate IT security people by publishing signed editions of this software?

FameyFamous
Автор

What are the benefits of msys2 over cygwin for creating mingw apps for Windows?

FameyFamous