What is the difference between MinGW, MinGW-w64 and MinGW-builds?

C++EclipseGccC++11Mingw

C++ Problem Overview


What are the differences between MinGW, MinGW-w64 and MinGW-builds?

And which one should I use to compile c++ 11 source code with the Eclipse IDE on a Windows 8 machine?

C++ Solutions


Solution 1 - C++

MinGW is a GCC-port for Windows. Not all of the Windows API is supported (but for many programs the supported stuff is sufficient) and it´s only for 32bit-Programs (which often can run on 64bit-Windows too, but some can´t, and you can´t compile them as 64bit).

MinGW-w64 is a improved version which supports both 32bit and 64bit, and some more of the WinAPI (still not all, because thats much work, but more than MinGW).

MinGW-w64 only provides their source code, but no binaries to "just use" the compiler.

MinGW-builds is a somewhat separate project to provide binaries in the most useful configurations. To get a specialized build of MinGW-w64, manual compiling is still possible.

Using the MinGW-builds self-installer is the easiest way, if nothing unusual is needed. Also see here for help with the self-installer.

Solution 2 - C++

Mingw compiles your code to Windows binaries that run under Windows.

Windows subsystem for Linux (WSL) makes Linux binaries. You can install other Linux programs under WSL, except if you need a graphical interface. You can access the Windows filesystem from WSL, but not vice versa.

Cygwin makes Windows binaries that can run under Windows outside the Cygwin shell, as long as you have the Cygwin DLL. This gives a Linux-like environment that is fully compatible with Windows.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRomainView Question on Stackoverflow
Solution 1 - C++deviantfanView Answer on Stackoverflow
Solution 2 - C++A FogView Answer on Stackoverflow