How to install MinGW-w64 (WinLibs standalone build) and how to compile and run C/C++ on windows 10
WinLibs standalone build of GCC and MinGW-w64 for Windows
What is it?
In short: it's a free C and C++ compiler for Microsoft Windows.
GCC (GNU Compiler Collection) is a free and open source compiler for C and C++ (and other languages like Objective-C, Fortran, D).
MinGW-w64 is a free and open source C library for targeting Windows 32-bit and 64-bit platforms.
The combination of these results in a free C/C++ compiler for Windows.
Even though GCC and MinGW-w64 can be used on other platforms (e.g. Linux) to generate Windows executables, the WinLibs project only focusses on building versions that run natively on Windows.
Also some additional tools are added, including:
GDB - the GNU Project debugger
GNU Binutils - a collection of binary tools
GNU Make - a tool which controls the generation of executables and other non-source files
Yasm - The Yasm Modular Assembler Project
NASM - The Netwide Assembler
JWasm - A free MASM-compatible assembler
LLVM/Clang/LLD/LLDB - The LLVM Compiler Infrastructure
This is a standalone build, which means this download offers a complete compiler environment for Windows.
Standalone MinGW-w64+GCC builds for Windows, built from scratch (including all depencencies) natively on Windows for Windows.
Downloads are archive files (.zip or .7z). No installation is required, just extract the archive and start using the programs in mingw32\bin or mingw64\bin. This allows for a relocatable compiler suite and allows having multiple versions on the same system.
Flavors: * separate packages for 32-bit (i686) and 64-bit (x86_64) Windows * separate packages for MSVCRT and UCRT builds * only POSIX threads builds (which also include Win32 API thread functions) * exception model: Dwarf for 32-bit (i686) and SEH for 64-bit (x86_64)
https://github.com/brechtsanders/winlibs_mingw/releases/download/12.2.0-15.0.6-10.0.0-ucrt-r3/winlibs-x86_64-posix-seh-gcc-12.2.0-llvm-15.0.6-mingw-w64ucrt-10.0.0-r3.zip
WinLibs.com
Platform Supported: Windows
GCC / Mingw-w64 Version: 12.2.0/10.0.0
Languages: Ada, C, C++, Fortran, Obj-C, Obj-C++, Assembler
Additional Software in Package Manager: Package manager: work in progress (will offer more than 2500 packages)
Important Note: MinGW-w64 comes with variety of Pre-built toolchains and packages, so be careful in choosing the packages and all packages are not same.