MSYS2 - GCC/MinGW on Windows (C/C++ Development)

preview_player
Показать описание
In this video I demonstrate how to install and setup MSYS2 on Windows. We install GCC and compile a small C++ program for Windows. We also look at installing packages using pacman, using Windows Terminal as well as upgrading MSYS2.

0:00 Introduction
0:29 Installation
2:12 MSYS2 Environments
4:53 MSYS2 vs WSL2
7:38 Installing Packages
10:34 Windows Terminal Profile
13:53 Compile C++ with GCC
16:23 Updating MSYS2

Music I use: Bensound
License code: MHYZWER4MIXR873P
Рекомендации по теме
Комментарии
Автор

Excellent explanation!!!
In my case, cleared up a lot of confusion. thank you so much.

bhanderidhruvbhanderidhruv
Автор

Excellent explanation!!!
In my case, cleared up a lot of confusion.
Also the segment on adding a NEW profile in the Windows Terminal was very helpful.

margarethill
Автор

Simply the best tutorial for starters and well explained

catmuf
Автор

why this guy doesn't have more subscribers!!! wow sir your channel is a gem

danial_amini
Автор

thank you, this was really enlighting! I enjoyed how you resolved my questions that just came up on the go intuively

aerospace_andy
Автор

Thank you, great explanation!
Not just "Install this - the end".

adrianzakrzewski
Автор

This video was very helpful. Subscribed.

pawnsniper
Автор

I have been using it for a while. It is very convenient. Also I succeed in compiling source that otherwise just won't compile in any other pipeline on win (sdl_gpu for example) with the MSYS2 system. It's so good.

l_t_m_f
Автор

the windows terminal add on thing is just another layer of complexity that is definitely a persistent trend these days .

edwardmacnab
Автор

Thank you so much for uploading this video. Simply, direct, and well explained. However, after compiling my "hello_word.cpp" for test purposes, I have an error with "libstdc++6.dll when I try to run the .exe. Looks like Windows can not find this .dll. Could you help me?

EDIT: I just statically linked the C and C++ standard libraries: c++ helloWorld.cpp -static -o HelloWorld.exe

alcidesneto
Автор

When i compile hello world in mingw64 it links my exe with libstdc++-6.dll.
That is not part of windows.
It's fine if I use printf instead of cout and don't use any c++ features.
Can you show how to compile hello world step by step ?

peterSobieraj
Автор

shocked ...gentleman like u have so less suscriber

sejwalvlogs
Автор

Has anyone told you how much you look like Ben Affleck?

RenatBikaev-nthq