You can use MSYS2. It also comes with package manager and repository that contains many prebuilt open source libraries. Answer from equeim on reddit.com
🌐
WinLibs
winlibs.com
WinLibs - GCC+MinGW-w64 compiler for Windows
GCC 14.0.1 snapshot 20240324 (experimental) + MinGW-w64 11.0.1-prerelease (MSVCRT, POSIX threads) - release 1
🌐
Reddit
reddit.com › r/cpp_questions › replacing mingw gcc with newer gcc version (windows 11)
r/cpp_questions on Reddit: Replacing mingw gcc with newer gcc version (Windows 11)
November 4, 2023 -

I currently have mingw installed and the newest available version of gcc (specifically g++) is 6.3.0. Is there a way I can get a newer version of gcc without having to manually replace files in the mingw directory or installing msys2 (or similar things like that)

Installing the newest version of g++ was so much easier on my linux laptop... And installing sfml was even easier. With the version I have on my windows computer, I can't even find a pre-compiled sfml version that works because "the compiler versions must match 100%"

edit: ideally, I want it to work without having to install a new ide that somehow has the compiler integrated in its source code

Discussions

c++ - C++11 functionality with MinGW - Stack Overflow
I put -std=c+11 and it says cc1plus.exe: error: unrecognized command line option '-std=c+11' ... What version is your MinGW (You can check with gcc -v)? More on stackoverflow.com
🌐 stackoverflow.com
c++ - C++11 compiler for windows - Stack Overflow
Unlike other gcc-based installations it supports posix threads, which are currently key to getting the gcc support for C++11 threads and friends working on Windows. Extract the directory mingw to any location and add the following two paths to your PATH environment variable: (well, change F:\coding ... More on stackoverflow.com
🌐 stackoverflow.com
Need help updating GCC/G++ from MinGW
https://winlibs.com/ you probably want GCC 13.2.0 (with POSIX threads) + LLVM/Clang/LLD/LLDB 16.0.6 + MinGW-w64 11.0.0 (UCRT) - release 1 (LATEST) Win64: 7-Zip archive* | Zip archive - without LLVM/Clang/LLD/LLDB: 7-Zip archive* | Zip archive and choose the Win64 Zip archive (the first Zip archive in that link) version_info.txt says winlibs personal build version gcc-13.2.0-llvm-16.0.6-mingw-w64ucrt-11.0.0-r1 This is the winlibs Intel/AMD 64-bit standalone build of: GCC 13.2.0 GDB 13.2 LLVM/Clang/LLD/LLDB 16.0.6 MinGW-w64 11.0.0 (linked with ucrt) GNU Binutils 2.40 GNU Make 4.4.1 PExports 0.47 dos2unix 7.5.0 Yasm 1.3.0 NASM 2.16.01 JWasm 2.12pre ccache version 4.8.2 CMake 3.27.1 ninja 1.11.1 doxygen 1.9.7 Thread model: posix Runtime library: UCRT (Windows 10 or higher, or when Update for Universal C Runtime is installed on older Windows versions, not supported on systems older than Windows 7 SP1 and Windows Server 2008 R2 SP1) This build was compiled with GCC 13.2.0 and packaged on 2023-07-28. More on reddit.com
🌐 r/cpp_questions
13
3
October 17, 2023
I ve downloaded the qt6 version and mingw for gcc 11 version
theres only a mingw1120_64 version in the qt install tool package. How could i use the mingw1120_64 to compile a windows 32 cpu program? More on forum.qt.io
🌐 forum.qt.io
11
0
October 19, 2022
You can use MSYS2. It also comes with package manager and repository that contains many prebuilt open source libraries. Answer from equeim on reddit.com
🌐
mingw-w64
mingw-w64.org
mingw-w64
Winpthreads, a pthreads library for C++11 threading support and simple integration with existing project.
🌐
mingw-w64
mingw-w64.org › downloads
Pre-built Toolchains - mingw-w64
GCC with the MCF thread model is a series of x86-32 and x86-64 native toolchains built by LH_Mouse. The MCF thread model has been merged into GCC 13, and can be enabled by passing --enable-threads=mcf to GCC's configure script. C++11 threading facilities, such as std::thread, std::mutex, std::condition_variable, std::call_once, thread_local etc.
🌐
SourceForge
sourceforge.net › projects › mingw
MinGW - Minimalist GNU for Windows download | SourceForge.net
A native Windows port of the GNU Compiler Collection (GCC) MinGW: A native Windows port of the GNU Compiler Collection (GCC), with freely distributable import libraries and header files for building native Windows applications; includes extensions ...
Rating: 4.3 ​ - ​ 223 votes
Find elsewhere
🌐
Medium
alinawrites.medium.com › how-to-install-mingw-gcc-g-compiler-on-windows-f7c805747a00
How to Install MinGW GCC/G++ Compiler on Windows 7, 10 or 11 | by Alina Writes | Medium
November 3, 2022 - How to Install MinGW GCC/G++ Compiler on Windows 7, 10 or 11 GCC and G++ compilers are used to execute C & C++ code in Windows on command line, or to help run C and C++ from Visual Studio Code or …
🌐
GitHub
github.com › brechtsanders › winlibs_mingw › releases
Releases · brechtsanders/winlibs_mingw
winlibs standalone build of GCC compiler and MinGW-w64 - brechtsanders/winlibs_mingw
Author   brechtsanders
🌐
Visual Studio Code
code.visualstudio.com › docs › cpp › config-mingw
Using GCC with MinGW
November 3, 2021 - If the Microsoft Visual C++ compiler can be found it will be selected, otherwise it will select a version of gcc, g++, or clang. If you have more than one compiler installed, you might need to change compilerPath to match the preferred compiler for your project. You may also use the C/C++: Select IntelliSense Configuration... command in the Command Palette to select one of the compilers that the extension detected. You must follow the steps on the MSYS2 website to use the MSYS CLI to install the full MinGW-w64 toolchain(pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain), as well as all required prerequisites.
🌐
GNU
gcc.gnu.org › gcc-11 › changes.html
GCC 11 Release Series — Changes, New Features, and Fixes - GNU Project
GCC 11 provides a complete implementation of the Go 1.16.3 user packages. libgccjit was marked as merely "Alpha" quality when originally added in GCC 5. Given that we have maintained API and ABI compatibility since then and it is in use by various projects, we have removed that caveat. libgccjit ...
🌐
Medium
rahulsreedharan.medium.com › learn-how-to-install-64bit-gcc-mingw-w64-on-windows-10-11-ced7b621e433
Learn how to install 64bit GCC (MingW-W64) on Windows 10/11 | by RSDevX | Medium
March 2, 2023 - Learn how to install 64bit GCC (MingW-W64) on Windows 10/11 The tutorial teaches you how to install 64bit GCC (MingW-W64) on a windows 10,11 system from scratch. Original tutorial Learn how to …
🌐
SourceForge
sourceforge.net › projects › mingw-w64
MinGW-w64 - for 32 and 64 bit Windows download | SourceForge.net
1 week ago - Download MinGW-w64 - for 32 and 64 bit Windows for free. A complete runtime environment for gcc. The mingw-w64 project is a complete runtime environment for gcc to support binaries native to Windows 64-bit and 32-bit operating systems.
🌐
MSYS2
packages.msys2.org › packages › mingw-w64-x86_64-gcc
Package: mingw-w64-x86_64-gcc - MSYS2 Packages
May 17, 2026 - mingw-w64-x86_64-gcc (make) mingw-w64-x86_64-gcc-ada (make, normal) mingw-w64-x86_64-gcc-fortran (make, normal) mingw-w64-x86_64-gcc-libgfortran (make) mingw-w64-x86_64-gcc-libs (make) mingw-w64-x86_64-gcc-lto-dump (make, normal) mingw-w64-x86_64-gcc-objc (make, normal) mingw-w64-x86_64-gdal (make) mingw-w64-x86_64-gdb (make) mingw-w64-x86_64-gdb-multiarch (make) mingw-w64-x86_64-gdbm (make) mingw-w64-x86_64-gdcm (make) mingw-w64-x86_64-gdk-pixbuf2 (make) mingw-w64-x86_64-gdk-pixbuf2-docs (make) mingw-w64-x86_64-gdl (make) mingw-w64-x86_64-gdu (make) mingw-w64-x86_64-geany (make) mingw-w64-x86
🌐
Nuwen
nuwen.net › mingw.html
MinGW Distro - nuwen.net
My MinGW distribution ("distro") is x64-native and currently contains GCC 15.2.0 and Boost 1.90.0.
🌐
Reddit
reddit.com › r/cpp_questions › need help updating gcc/g++ from mingw
r/cpp_questions on Reddit: Need help updating GCC/G++ from MinGW
October 17, 2023 -

Hello, I installed the compilers about a month ago with MingGW, little did I know they were out of date, around version 6. I can't find a good tutorial on how to update them on windows so if someone could help me out that would be great.

🌐
GitHub
github.com › MediaArea › MediaInfo › issues › 572
MSYS2/MinGW, GCC 11 stops compiling for ambiguous type byte · Issue #572 · MediaArea/MediaInfo
October 25, 2021 - MSYS2/MinGW, GCC 11 stops compiling for ambiguous type byte#572 · MediaArea/MediaInfoLib#1450 · Copy link · Assignees · LigH-de · opened · on Oct 25, 2021 · Issue body actions · Found in media-autobuild suite issue 2065 · logs.zip collected by M-AB-S ·
Author   MediaArea
🌐
GitHub
github.com › xpack-dev-tools › mingw-w64-gcc-xpack › releases
Releases · xpack-dev-tools/mingw-w64-gcc-xpack
Version 14.2.0-1 is a new release of the xPack MinGW-w64 GCC package, following the official GNU GCC release. ... There was an error while loading. Please reload this page. ... There was an error while loading.
Author   xpack-dev-tools