GNU development software for Windows
Mingw-w64 is a free and open-source suite of development tools that generate Portable Executable (PE) binaries for Microsoft Windows. It was forked in 2005โ€“2010 from MinGW (Minimalist GNU for Windows). Mingw-w64 includes โ€ฆ Wikipedia
Factsheet
Original author OneVision Software
Developers Kai Tietz, Jonathan Yong, various GNU contributors
Release 2005; 21 years ago
Factsheet
Original author OneVision Software
Developers Kai Tietz, Jonathan Yong, various GNU contributors
Release 2005; 21 years ago
๐ŸŒ
MacPorts
ports.macports.org โ€บ port โ€บ mingw-w64
Install mingw-w64 on macOS with MacPorts
Mingw-w64 is an advancement of the original mingw.org project, created to support the GCC compiler on Windows systems. ... If not done already, install MacPorts.
Discussions

Run MinGW in Mac?
Hi, How can i run Min GW in Mac, ... run in Mac? Can anyone please advise? I posted the codes below. Clear["Global`*"]; Needs["CCompilerDriver`GenericCCompiler`"]; $CCompiler = {"Compiler" -> CCompilerDriver`GenericCCompiler`GenericCCompiler, "CompilerInstallation" -> "C:\\MinGW", "CompilerName" ... More on community.wolfram.com
๐ŸŒ community.wolfram.com
19
0
June 29, 2019
"arch -x86_64 brew install MinGW-w64" is โ€ฆ - Apple Community
MinGW-w64 is compiled for Intel x86_64 architecture. It is not compatible. The best you can do is to attempt to virtualize an ARM version of Windows on the M1 Mac. More on discussions.apple.com
๐ŸŒ discussions.apple.com
C++ mingw-w64 compiler on MAC
Do you need to use MinGW? It is designed to run on Windows. If you instead need a compiler that works on Mac, you can use clang or gcc. What are you trying to do? More on reddit.com
๐ŸŒ r/learnprogramming
7
1
June 20, 2022
cross-compiling autoconf-based tools with mingw on Mac OS X - Stack Overflow
I'd like to cross-compile some open-source libraries (libiconv, gettext, glib2) for windows using mingw on Mac OS X. I've installed mingw on Mac with MacPorts. But now I'm not sure what to give t... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
mingw-w64
mingw-w64.org โ€บ downloads
Pre-built Toolchains - mingw-w64
Here is the list of mingw-w64 packages on MacPorts.
๐ŸŒ
Sub-Etha Software
subethasoftware.com โ€บ 2025 โ€บ 04 โ€บ 14 โ€บ til-how-to-build-a-pc-exe-on-my-mac-and-run-it-on-my-mac
TIL how to build a PC .exe on my Mac, and RUN it on my Mac. | Sub-Etha Software
June 12, 2026 - For reasons that are not important (or at least not interesting, or maybe both), tonight I was researching to see if I could build a PC .exe on a Mac. I asked Copilot, and it suggested I install the โ€œMinGWโ€ cross compiler tools.
๐ŸŒ
Homebrew
formulae.brew.sh โ€บ formula โ€บ mingw-w64
Homebrew Formulae: mingw-w64
Binaries: i686-w64-mingw32-addr2line, i686-w64-mingw32-ar, i686-w64-mingw32-as, i686-w64-mingw32-c++, i686-w64-mingw32-c++filt, i686-w64-mingw32-cpp, i686-w64-mingw32-dlltool, i686-w64-mingw32-dllwrap, i686-w64-mingw32-elfedit, i686-w64-mingw32-g++, i686-w64-mingw32-gcc, i686-w64-mingw32-gcc-16.2.0, i686-w64-mingw32-gcc-ar, i686-w64-mingw32-gcc-nm, i686-w64-mingw32-gcc-ranlib, i686-w64-mingw32-gcov, i686-w64-mingw32-gcov-dump, i686-w64-mingw32-gcov-tool, i686-w64-mingw32-gfortran, i686-w64-mingw32-gprof, i686-w64-mingw32-ld, i686-w64-mingw32-ld.bfd, i686-w64-mingw32-lto-dump, i686-w64-mingw32-
๐ŸŒ
DaniWeb
daniweb.com โ€บ programming โ€บ software-development โ€บ threads โ€บ 66450 โ€บ mingw-equivalent-for-osx
c++ - MinGW equivalent for OSX? | DaniWeb
January 5, 2007 - If your course truly requires a Windows .exe (as MinGW does), you do not need Boot Camp. Install a MinGW cross-compiler on macOS and produce Windows binaries directly. Today the maintained toolchain is mingw-w64, which supersedes the older MinGW and targets both 32- and 64-bit Windows.
Find elsewhere
๐ŸŒ
GitHub
gist.github.com โ€บ jacksonrakena โ€บ fd83c781c9175375b8326024ab2964ba
Installing MinGW (GCC C++) and Geany, for ENGR 101 at VUW ยท GitHub
This guide details how to install MinGW, the GNU C/C++ compiler, on a Windows or macOS operating system (clang).
๐ŸŒ
WOLFRAM COMMUNITY
community.wolfram.com โ€บ questions
Run MinGW in Mac? - Questions - WOLFRAM COMMUNITY
June 29, 2019 - Hi, How can i run Min GW in Mac, do I need to rearrange these codes to make it run in Mac? Can anyone please advise? I posted the codes below. Clear["Global`*"]; Needs["CCompilerDriver`GenericCCompiler`"]; $CCompiler = {"Compiler" -> CCompilerDriver`GenericCCompiler`GenericCCompiler, "CompilerInstallation" -> "C:\\MinGW", "CompilerName" -> "gcc.exe"}; CompileOptions = {CompilationTarget -> "C", RuntimeOptions -> {"CatchMachineOverflow" -> False, "CatchMachineUnderflow" -> ...
๐ŸŒ
Apple Community
discussions.apple.com โ€บ thread โ€บ 253749782
"arch -x86_64 brew install MinGW-w64" is โ€ฆ - Apple Community
MinGW-w64 is compiled for Intel x86_64 architecture. It is not compatible. The best you can do is to attempt to virtualize an ARM version of Windows on the M1 Mac.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ c++ mingw-w64 compiler on mac
r/learnprogramming on Reddit: C++ mingw-w64 compiler on MAC
June 20, 2022 -

I have installed the mingw-w64 compiler for C++ in VSCODE on mac, however I don't know how to add the file to PATH like on windows or even what the exact name of the file is and where it is located. Anyone have a way to add it to the PATH variable and using it in VSCODE on MAC?

Top answer
1 of 4
7

On Ubuntu, you can get going in many cases with "apt-get install gcc-mingw32"

If you need to install both the 64-bit and 32-bit mingw compilers, try this:

  • from http://sourceforge.net/tracker/?func=detail&aid=3258887&group_id=67079&atid=516781

For 64-bit build systems:

apt-get install libmpfr1ldbl
wget http://ppa.launchpad.net/mingw-packages/ppa/ubuntu/pool/main/w/w64-toolchain/x86-64-w64-mingw32-toolchain_1.0b+201011211643-0w2273g93970b22426p16~karmic1_amd64.deb
dpkg -i x86-64-w64-mingw32-toolchain_1.0b+201011211643-0w2273g93970b22426p16~karmic1_amd64.deb

For 32-bit build systems:

wget http://ppa.launchpad.net/mingw-packages/ppa/ubuntu/pool/main/w/w64-toolchain/i686-w64-mingw32-toolchain_1.0b+201011211643-0w2273g93970b22426p16~karmic1_amd64.deb
dpkg -i i686-w64-mingw32-toolchain_1.0b+201011211643-0w2273g93970b22426p16~karmic1_amd64.deb

Source for this tip: http://ubuntuforums.org/showthread.php?t=1705566

On Fedora, you can install mingw32 using standard yum. To install mingw64, follow the instructions at:

  • http://fedoraproject.org/wiki/MinGW/CrossCompilerFramework
  • http://fedoraproject.org/wiki/Features/Mingw-w64_cross_compiler
  • http://www.advancedhpc.com/tower_servers/tower_server_products.html

    $ cd /etc/yum.repos.d $ sudo wget http://fedoraproject.org/wiki/MinGW/CrossCompilerFramework#Development_and_testing_repository $ yum update $ yum install mingw64-gcc mingw64-g++ mingw64-zlib

Best bet for cross-compiling seems to be Fedora, which gives you both mingw32 and mingw64:

  • http://fedoraproject.org/wiki/MinGW/CrossCompilerFramework

    sudo yum install mingw32-gcc-c++

I haven't been able to find a 64-bit cross-compiler for Mac.

2 of 4
4

Fedora has a very nice mingw32 cross compiler framework with lots of pre-compiled libraries. The packages are all included in the official package repository and it's just the matter of running 'yum install mingw32-gcc' to set the compiler up. See the Fedora MinGW project page for more information.

However, the official packages currently only support the 32 bit Windows target. To lift that restriction, there is work underway and a temporary repository set up with mingw32, mingw64, and OS X cross compilers. See https://fedoraproject.org/wiki/MinGW/CrossCompilerFramework for more info.

๐ŸŒ
SourceForge
sourceforge.net โ€บ home โ€บ open source software โ€บ search results
mingw for mac free download - SourceForge
You can always download the latest ... please use 'x86_64' instead of 'i686'): pacman -S mingw-w64-i686-toolchain \ mingw-w64-i686-boost \ mingw-w64-i686-hunspell \ mingw-w64-i686-wxwidgets3.2-common \ mingw-w64-i686-wxwidgets3.2-msw \ ......
๐ŸŒ
Apple Community
discussions.apple.com โ€บ thread โ€บ 254259441
When instaliing mingw/gcc compiler from tโ€ฆ - Apple Community
Homebrew, when installed properly will determine the platform architecture and use /usr/local for Intel installations, and the previously created /opt/homebrew for Apple Silicon installations. Still curious why you think you can install a mingw-w64 windows runtime environment for GCC on macOS and expect it to work.
๐ŸŒ
GitHub
github.com โ€บ hectorlin โ€บ mingw64-mac
GitHub - hectorlin/mingw64-mac: MinGW64 cross-compilation project for creating Windows executables on macOS ยท GitHub
This project showcases how to use MinGW64 on macOS to create Windows executables through cross-compilation, featuring a comprehensive CMake build system with custom targets similar to Make.
๐ŸŒ
JetBrains
intellij-support.jetbrains.com โ€บ hc โ€บ en-us โ€บ community โ€บ posts โ€บ 360000138304-Use-CLion-with-MinGW-w64-on-MacOS-High-Sierra
Use CLion with MinGW-w64 on MacOS High Sierra โ€“ IDEs Support (IntelliJ Platform) | JetBrains
I'm trying to get CLion to work on MacOS High Sierra using MinGW-w64. The main purpose of this is to attempt to cross compile software for Windows on MacOS, however, CLion is not detecting the installed MinGW-w64.
๐ŸŒ
YouTube
youtube.com โ€บ watch
Install MingW on MacOS | Using Homebrew | Macbook Air M1 | VS Code - YouTube
About this videoHi everyone, in this video i have installed MingW using Homebrew on MacOS. I have used two commands in the terminal, first one is to install ...
Published: October 11, 2022
๐ŸŒ
YouTube
youtube.com โ€บ watch
How to install MinGW-w64 compiler on Apple Silicon Macs + VS code setup (4K) - YouTube
Video tutorial on Installing MinGW-w64 Compiler and VS code setup#mingw #applesilicon #vscode #installation #4k
Published: July 13, 2022