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

v5.0.4: 2018-06-04

  • Fix gcc-8.1.0 compatibility regarding _xgetbv
  • %e printf specifier will now produce at least 2 digits for the exponent.

initial v5 Release: 2016-10-19

  • Fixes to the __mingw_printf family of functions.
  • DirectX updates from Wine.
  • Various updates to support Windows 7 and 10.
  • Various header typo fixes.

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

Martin Storsjö committed [db6434]
12.09.2019

_FORTIFY_SOURCE: Fix usage of __gnu_inline__.

Zufu Liu created ticket #812
09.09.2019

mingw-w64.org certificate has been expired for weeks

LH_Mouse committed [39654e]
06.09.2019

headers: _FORTIFY_SOURCE: Print warning if original gets() is called.

LH_Mouse committed [802f86]
06.09.2019

header: _FORTIFY_SOURCE: Add _read() and read().

LH_Mouse committed [7d56eb]
06.09.2019

include/libloaderapi: update header file

Alan A. Jorgensen, Ph.D. posted a comment on discussion Open Discussion
05.09.2019

My context: Acer Desktop with Intel CORE i5 7th Gen processor. Microsoft Windows 10 Version 1809 (OS Build 17763.678) A:>gcc --version gcc (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 8.1.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Attempting: A:>make gcc -v -o Parse.exe Parse.c Using built-in specs. COLLECT_GCC=gcc Target: mingw32 Configured...

Adriano da Silva Rocha posted a comment on ticket #413
04.09.2019

Hi, I'm having the same problem. "The file has been downloaded incorrectly!".

Adriano da Silva Rocha posted a comment on ticket #124
04.09.2019

I'm actually still struggling with the installer. It just says that the file has been downloaded incorrectly.

Martin Storsjö committed [94efba]
04.09.2019

headers: Don't use __gnu_inline__ with __mingw_ovr in C++ mode

LH_Mouse committed [1ebdd6]
02.09.2019

Revert "winpthreads/cond.c: Remove waits for `sema_b` from wait functions."