MSYS2 Shells (C++)

When you install MSYS2, it provides several different shells, each tailored for specific tasks and environments. Here’s a breakdown of the main shells available with MSYS2 and how they differ:

1. MSYS Shell (msys2.exe)

2. MinGW 64-bit Shell (mingw64.exe)

3. MinGW 32-bit Shell (mingw32.exe)

4. UCRT64 Shell

5. CLANG64 Shell

Summary Table

Shell Targeted Architecture Compiler Use Case POSIX Compatibility
MSYS MSYS2 environment MSYS GCC Running POSIX-style commands, managing MSYS2 Yes
MinGW 64-bit 64-bit Windows GCC (MinGW-w64) Compiling 64-bit native Windows applications No
MinGW 32-bit 32-bit Windows GCC (MinGW-w64) Compiling 32-bit native Windows applications No
UCRT64 64-bit Windows GCC (UCRT) Modern Windows apps with Universal C Runtime No
CLANG64 64-bit Windows Clang/LLVM Windows apps using Clang for C++ development No

Which Shell Should You Use?