GCC for Windows 64 & 32 bits


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 7 has been released

v7.0.0: 2019-11-10

Notable changes:

  • _FORTIFY_SOURCE support thanks to Christian Franke.
  • Lots of math fixes from Martin Storsjö.
  • Many headers updated from Wine by Jacek Caban.
  • UCRT support by Martin Storsjö.
And many other additions thanks to, but not limited to (in Alphabetical order)

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.


  • 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

Martin Storsjö committed [c1d15f]

headers: Add a few more guids and enums to codecapi.h

Martin Storsjö committed [468d3c]

headers: Include codecapi.h in uuids.h and define UUID_GEN if INITGUID is defined

Martin Storsjö committed [7e20be]

headers: Use EXTERN_GUID and DEFINE_PROPERTYKEY instead of a custom macro in mftransform.idl

Martin Storsjö committed [a307fd]

headers: Fix missing enum values in mfobjects.h

Martin Storsjö committed [0645e6]

headers: Add a few more new guids to mftransform.idl

r0q posted a comment on ticket #831

This seems to stem from the fact that the SDL2.dll was compiled with a different compiler. When I build all with the same, it works fine. Bug can be closed I guess.

r0q posted a comment on ticket #831

It seems like the overlapping import table parts are caused by strip. But without strip the resulting executable also imports CryptAcquireContextA & CryptGenRandom from SDL2.dll, which fails. Best regards Dennis

r0q created ticket #831

Overlapping import tables with executable built with mingw-w64-gcc 9.3

LH_Mouse committed [685aa5]

Drop the empty exception declaration from CheckError

LH_Mouse committed [8f1d60]

Detect -lm in genlib