Factsheet
MinGW-w64
Original author OneVision Software
Developers Kai Tietz, Jonathan Yong, various GNU contributors
MinGW-w64
Original author OneVision Software
Developers Kai Tietz, Jonathan Yong, various GNU contributors
mingw-w64
mingw-w64.org › getting-started › msys2
Windows / MSYS2 (GCC) - mingw-w64
After installation, open "MSYS2 UCRT64" from the Start menu and install the C and C++ compiler: $ pacman -S mingw-w64-ucrt-x86_64-gcc · To check the version of the provided GCC and mingw-w64: $ pacman -Qi mingw-w64-ucrt-x86_64-gcc | grep Version Version : 14.2.0-2 # GCC Version $ pacman -Qi ...
MSYS2
msys2.org
MSYS2
Installing MSYS2 requires 64 bit Windows 10 (1809+) or newer. Enter your desired Installation Folder. We recommend using the default, see installation folder recommendations for more information. When done, click Finish. Now MSYS2 is ready for you and a terminal for the UCRT64 environment will launch. You will probably want to install some tools like the mingw-w64 GCC to start compiling projects.
Videos
19:31
Install 64bit GCC (MingW-W64) on Windows 10/11 using MSYS2 installer ...
MSYS2 - GCC/MinGW on Windows (C/C++ Development)
06:57
C language: MSYS2 install (gcc compiler) - YouTube
11:35
2.C Programming - Using MSYS2 to install GNU GCC compiler - YouTube
19:54
How to Download and Install C Cpp Toolset ( gcc g++ gdb ) in Windows ...
How to install MSYS2? on Windows - YouTube
Medium
sajidifti.medium.com › how-to-install-gcc-and-gdb-on-windows-using-msys2-tutorial-0fceb7e66454
How to Install GCC and GDB on Windows Using MSYS2 — Tutorial | by Sajid Anam Ifti | Medium
November 23, 2023 - For developers transitioning to or working in a Windows environment, setting up a robust toolchain for C and C++ programming is crucial. In this tutorial, I will guide you through the process of installing GCC (GNU Compiler Collection) and GDB (GNU Debugger) on Windows using MSYS2, a software distribution and building platform.
MSYS2
packages.msys2.org › packages › mingw-w64-x86_64-gcc
Package: mingw-w64-x86_64-gcc - MSYS2 Packages
Installed Size: 245.01 MB · Source-Only Tarball: https://mirror.msys2.org/mingw/sources/mingw-w64-gcc-15.2.0-13.src.tar.zst · Dependencies: mingw-w64-x86_64-binutils · mingw-w64-x86_64-crt · mingw-w64-x86_64-gcc-libs =15.2.0-13 · mingw-w64-x86_64-gmp · mingw-w64-x86_64-headers · mingw-w64-x86_64-isl · mingw-w64-x86_64-mpc · mingw-w64-x86_64-mpfr · mingw-w64-x86_64-windows...
Xanthium
xanthium.in › how-to-install-gcc-64bit-mingw-w64-binary-tool-chain-c-cpp-dev-windows10-using-msys2-beginner-tutorial
Learn to install GCC (Mingw-w64) compiler tools on Windows 10 using MSYS2 | xanthium enterprises
In this tutorial ,We will learn How to install 64 bit (GCC) GNU Compiler Collection (Mingw-w64 port) on a Windows 10 system using MSYS2 installer for C/C++ software development.
Solarian Programmer
solarianprogrammer.com › 2019 › 11 › 05 › install-gcc-windows
Install GCC 9 on Windows - Build C, C++ and Fortran programs | Solarian Programmer
We are done with the installation. Write exit in the MSYS2 Terminal to exit cleanly: ... Next, when you want to compile and run C, C++ or Fortran programs you will need to go to Windows Start → MSYS2 64 bit → MSYS2 MinGW 64-bit: be careful which option you select, otherwise you will get errors when you try to use the compilers. ... 1 $ gcc --version 2 gcc.exe (Rev2, Built by MSYS2 project) 9.2.0 3 Copyright (C) 2019 Free Software Foundation, Inc.
Reddit
reddit.com › r/learnprogramming › why is installing gcc complier so hard. used msys2 to help with installing mingw-w64
r/learnprogramming on Reddit: why is installing gcc complier so hard. used msys2 to help with installing Mingw-w64
March 18, 2023 -
Unable to resolve configuration with compilerPath "gcc". Using "C:\MinGW\bin\gcc.exe" instead. (this is visual studio code ide)
Top answer 1 of 8
8
I don't code in C++, but if I was going to code in C++ on Windows then I'd just install Visual Studio Community Edition which is a complete IDE that supports C++. It's a lot less hassle than trying to get other compilers working on Windows, if the posts in this sub are anything to go by.
2 of 8
7
Install WSL2 and clang or gcc instead.
MSYS2
packages.msys2.org › packages › gcc
Package: gcc - MSYS2 Packages
Installed Size: 197.99 MB · Source-Only Tarball: https://mirror.msys2.org/msys/sources/gcc-15.2.0-1.src.tar.zst · Dependencies: binutils · gcc-libs =15.2.0-1 · gmp · isl · libiconv · libintl · mpc · mpfr · msys2-runtime-devel · msys2-w32api-headers · msys2-w32api-runtime · windows-default-manifest ·
GitHub
github.com › orlp › dev-on-windows › wiki › Installing-GCC--&-MSYS2
Installing GCC & MSYS2 · orlp/dev-on-windows Wiki · GitHub
Note that MSYS2 also puts a lot of other tools in this directory, most notably Python. So put these entries below any other tools you might have installed in your PATH. Done. Now you can use gcc, g++, etc to get your 64-bit targeting compiler from your regular command line.
Author orlp
C++ Programming Language
cpp-lang.net › setup gcc on windows
Setup GCC on Windows | C++ Programming Language
In this article, we will show you how to install one of the · latest versions of the GCC compiler that will allow you to create programs in C++. On Windows, the GCC compiler is part of the MSYS2 package.
Top answer 1 of 2
15
Since you installed mingw-w64-x86_64-gcc it seems like you want to compile 64-bit native Windows applications. Therefore, you should start MSYS2 by running mingw64.exe, found at the top level of your MSYS2 installation. That will put /mingw64/bin/ on your PATH and set some other useful environment variables.
2 of 2
3
Solution
I have found simply adding C:\msys64\mingw64\bin to the host windows computers PATH variable this, in turn, adds \mingw64\bin to the MSYS2 $PATH solving the problem.
GitHub
github.com › msys2 › MSYS2-packages › issues › 293
install gcc on msys2 · Issue #293 · msys2/MSYS2-packages
July 14, 2015 - Hi, whats the right package to install gcc on msys2? pacman -S gcc pacman -S mingw-w64-x86_64-gcc I use: msys2-x86_64-20150512.exe Thanks, A
Published Jul 14, 2015
Dmitriev
blog.dmitriev.de › kb › msys › msys
How to install gcc and clang on Windows using MSYS
May 28, 2025 - COLLECT_GCC=C:\msys64\ucrt64\bin\gcc.exe ... Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.1.0 (Rev1, Built by MSYS2 project) clang -v clang version 20.1.3 Target: x86_64-w64-windows-gnu Thread model: posix InstalledDir: C:/msys64/ucrt64/bin
Github-wiki-see
github-wiki-see.page › m › Jefsv › dev-on-windows › wiki › Installing-GCC-&-MSYS2
Installing GCC & MSYS2 - Jefsv/dev-on-windows GitHub Wiki
Note that MSYS2 also puts a lot of other tools in this directory, most notably Python. So put these entries below any other tools you might have installed in your PATH. Done. Now you can use gcc, g++, etc to get your 64-bit targeting compiler from your regular command line.
