mingw-w64

GCC for Windows 64 & 32 bits

This is an old revision of the document!


Mingw-w64

Mingw-w64 is an advancement of the original mingw.org project, created to support the GCC compiler on Windows systems. It has forked it in 2007 in order to provide support for 64 bits and new APIs. It has since then gained widespread use and distribution.

The development and community are very active and welcoming with new contributors every month and simple installers.

Version 4.0 has been released

  • 32bit ARM thumb software math (Thanks to André Hentschel!).
  • New ftw() support for gcc-5.x support.
  • Experimental printf changes - Ability to print 128bit integers (%I128*) and Decimal Floats (%H, %D), disabled by default. Build the CRT with —-enable-experimental to use.
  • Updated OpenGL 4.5 headers.
  • Better DirectX 11 support.
  • Better Windows 7, 8/8.1 API support.

You can also look at the full list of versions.

Headers, Libraries and Runtime

  • More than a million lines of headers are provided, not counting generated ones, and regularly expanded to track new Windows APIs.
  • Everything needed for linking and running your code on Windows.
  • Winpthreads, a pthreads library for C++11 threading support and simple integration with existing project.
  • Winstorecompat, a work-in-progress convenience library that eases conformance with the Windows Store.
  • Better-conforming and faster math support compared to Visual Studio's.

Tools

  • gendef: generate Visual Studio .def files from .dll files.
  • genidl: generate .idl files from .dll files.
  • widl: compile .idl files.

Friend projects

Mingw-w64 interacts a lot with other projects in order to help everyone move forward. Contributions have been going to and coming from these projects:

Most Recent Activity

Jacek Caban committed [5c137a]
04.08.2020

headers: import files from wine

CW1 modified a comment on discussion Help
31.07.2020

A small test program from the configure script of a package I'm attempting to build with MinGW-w64 works fine with x86_64-w64-mingw32-gcc but then gives this error with i686-w64-mingw32-gcc: /usr/bin/i686-w64-mingw32-ld: /tmp/ccRc6nqf.o:conftest.c:(.text+0xc): undefined reference to 'recv' If I run it manually with: i686-w64-mingw32-gcc -o conftest.exe conftest.c -Wall -L/usr/i686-w64-mingw32/lib/ -lws2_32 I get the same error, however, if I run the same under x86_64, it's fine: x86_64-w64-mingw32-gcc...

CW1 posted a comment on discussion Help
31.07.2020

A small test program from the configure script of a package I'm attempting to build with MinGW-w64 works fine with x86_64-w64-mingw32-gcc but then gives this error with i686-w64-mingw32-gcc: /usr/bin/i686-w64-mingw32-ld: /tmp/ccRc6nqf.o:conftest.c:(.text+0xc): undefined reference to recv If I run it manually with: i686-w64-mingw32-gcc -o conftest.exe conftest.c -Wall -L/usr/i686-w64-mingw32/lib/ -lws2_32 I get the same error, however, if I run the same under x86_64, it's fine: x86_64-w64-mingw32-gcc...

LH_Mouse committed [fe758f]
28.07.2020

include/cfgmgr32.h: add missing defines

LH_Mouse committed [4ea074]
28.07.2020

include/cfg.h: add missing defines

LH_Mouse committed [675fd4]
28.07.2020

include/sdkddkver.h: add new NTDDI version defines

LH_Mouse committed [4b31ce]
28.07.2020

include/psapi.h: update union PSAPI_WORKING_SET_EX_BLOCK

LH_Mouse committed [4e51df]
28.07.2020

include/security.h: add CLOUDAP_NAME define

ARATA Mizuki created ticket #848
28.07.2020

fma returns an incorrect result

Fyr posted a comment on discussion Open Discussion
24.07.2020

Who will fix the bugs? The bug tracker seems quite abandoned. If they are not bugs, they should be closed, if they are bugs, they should be fixed.