Install GCC on Windows
Get a C and C++ compiler working on Windows: choosing between MSYS2 with MinGW-w64, WSL, and Microsoft's Visual C++ tools, installing GCC through MSYS2's UCRT64 environment, adding it to PATH, compiling and running your first C and C++ programs, debugging with GDB, setting up VS Code, and fixing common errors.
CodexBash, , 5 min read
Learning C or C++ on Windows starts with a frustrating step: Windows does not include a compiler, and searching for one turns up a confusing mix of old downloads and conflicting instructions. This guide gives one reliable path: GCC through MSYS2 with MinGW-w64, the most common choice for students and competitive programmers, plus the main alternatives. By the end you will compile and run C and C++ programs from the terminal and from VS Code.
Sign in to read the rest
The whole 5 minute article is free with an account, along with every problem, lesson and tutorial. No card.