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

v8.0.0: 2020-09-18

Notable changes:

  • New Hyper-V headers and libraries by Biswapriyo Nath
  • Many headers updated from Wine by Jacek Caban.
  • ARM math improvements by Martin Storsjö
  • floating point fixes by Liu Hao
  • many *printf compatibility fixes by Liu Hao and Martin Storsjö
  • massive Windows App Store API updates by Steve Lhomme
  • winstorecompat library updates by Martin Storsjö
  • __USE_MINGW_ANSI_STDIO now automatically enabled in C99 and C11 mode when not using UCRT by Pali Rohár
  • wdm and ddk updates by Zebediah Figura
  • UCRT for Windows Store Apps (-lucrtapp) by Martin Storsjö
  • Audioclient and ActivateAudioInterfaceAsync API updates by Liu Hao
  • DirectX SDKs are now always installed
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

LH_Mouse committed [b47b16]

Add C++ secure functions for wcstombs_s and _wcstombs_s_l

Rafał Brzegowy created ticket #886

unknown type name 'USN'

Jonathan Yong committed [256313]

Fix SymLoadModule64 signature inconsistency with Microsoft official one (PSTR will now be PCSTR)

Scr3amer created merge request #17

Fix MinGW - Microsoft SymLoadModule64 signature difference

FFS_User posted a comment on discussion Help

Thanks, the x86 premise of bit width went right over my head here. But after reading your extended explanation it really cleared up my confusion on ARM, risc and cisc. I am definitely going to try the install at https://www.msys2.org/ and put it in a separate base folder. As far as my current Installed Gcc, I sense I've hobbled it by choosing x86/64 which I know now is 64 bit only. I have some old apps that use exception handling which is why I chose the win32 (thread) option over Posix. But I'm...

rubenvb posted a comment on discussion Help

Yes, the 32-bit toolchain is as complete as the 64-bit one, and includes all the compiler support libraries. Note that if you use a system like MSYS2, you can easily install both, along with a huge list of 3rd party libraries that are prebuilt for you. You can find it here: https://www.msys2.org/ The x86_64 is a synonym for amd64 and x64. amd64 is the "original" name for the architecture, as AMD "invented" the 64-bit extensions for x86. x86_64 was introduced by Intel when their processors started...

FFS_User posted a comment on discussion Help

THANKS, (sorry my ISP was down yesterday) So if on install I had chosen i686 instead of x86/64 it would have put the 32 bit libs (?). The x86/64 seemed to indicate both target options to me. I'm looking around for 32bit libs to match my gcc version but so far not really sure where or which. My gcc installed version is gcc (x86_64-win32-seh-rev0, Built by MinGW-W64 project) 8.1.0 But in any case I am going to install a 32bit target version of MingW to a separate base folder.

Einar Flaathe posted a comment on ticket #168

I'm pretty sure I didn't use, mingw-w64-v7.0.0.zip, when installing! gcc /g++ --version both show Built by MinGW-W64 project) 8.1.0 Do I already have whats in - mingw-w64-v8.0.0.zip? Best regards, Einar

Sören Andersen posted a comment on discussion Open Discussion

I got a lot of gcc built, but now the build commands cannot find zlib for mingw64-x86_64 even though I have it installed, any ideas?

rubenvb posted a comment on discussion Help

The problem is that your toolchain isn't set up for multilib compilation. There's no 32-bit libraries present. Your simplest option is to use a separate 32-bit toolchain to build for 32-bit.