Beginning C++ on VSCode in Windows. Using MSYS2, MinGW-w64, and gdb tools, requiring just 2 GB disk.

preview_player
Показать описание

I'm coming at this video from Linux, where I can't imagine not having C++ build tools.

C++ is not productive per line typed. I would still consider it for simpler projects on Linux but the setup on Windows has always felt contentious and daunting.

We have incompatible build systems to contend with. MingW32 is a well established contender to MicroSoft toolchains. Microsoft provide a lot of documentation for supporting this from VS Code.

We could build binaries with more native Windows compatibility if we'd just take Microsoft's own build tools. Unfortunately, these aren't your grandfather's Visual Studio Express tools. They now require about 30GB of disk.

00:00 Install C/C++ compiler for Windows
00:32 Install VS Code
02:53 Install extensions
03:15 Install MSYS2
04:38 Launch UCRT64
05:11 Install GCC
05:43 Install GDB
06:42 Show GDB working
07:04 New VS Code project
08:43 Execute the code
10:16 GDB in action
11:18 Running outside of VS Code
12:36 Putting g++ on the path
13:23 Verifying new path in shells

Рекомендации по теме
Комментарии
Автор

My personal computer is Windows 7 and I want to install msys2 on it. I want you to give me a way to install it easily

fadisaleem