mingw-w64

GCC for Windows 64 & 32 bits

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

v9.0.0: 2021-05-22

Notable changes:

  • UCRT updates by Biswapriyo Nath
  • Wine updates by Jacek Caban
  • Various new and updated API headers by Biswapriyo Nath and Liu Hao
  • Various UCRT and MSVCRT fixes by Martin Storsjö
  • at_quick_exit implementation by Martin Storsjö
  • dism API by Biswapriyo Nath
  • idl fixes by Steve Lhomme
  • Winpthreads fixes by Liu Hao
  • gettimeofday precision increase by Christian Franke
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.

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

AsukaMio modified a comment on ticket #944
25.06.2022

More information on instructions.

AsukaMio modified a comment on ticket #944
25.06.2022

More information on instructions.

AsukaMio posted a comment on ticket #944
25.06.2022

More information on instructions.

AsukaMio created ticket #944
25.06.2022

winpthreads crash at longjmp

Fredy Paquet posted a comment on ticket #738
25.06.2022

4 years later, still same problem here on RHEL8 with mingw64 libs from [rex:/home/fredy"> nm /usr/x86_64-w64-mingw32/sys-root/mingw/lib/libcrypt32.a | grep CryptImportPublicKeyInfoEx2 [rex:/home/fredy"> [root@rex:/root"> dnf provides /usr/x86_64-w64-mingw32/sys-root/mingw/lib/libcrypt32.a Updating Subscription Management repositories. Last metadata expiration check: 1:15:46 ago on Sat 25 Jun 2022 08:04:24 AM CEST. mingw64-crt-5.0.2-2.el8.noarch : MinGW Windows cross-compiler runtime for the win64 target...

Takashi Yano posted a comment on ticket #943
24.06.2022

I found a workaround for this issue. Adding if (_isatty(_fileno(stdout))) _setmode(_fileno(stdout), _O_BINARY); after setlocale() solves the issue. Now I am trying to imply this into mingw.

alex parker modified a comment on discussion Help
22.06.2022

hi i want to write an inline asm code and call a windows API in it. i am using code::blocks with Mingw, in windows environment and i get this error while trying to compile a x86 version of my code: undefined reference to `MessageBoxA' my x86 code: #include <iostream> #include <windows.h> #include <winuser.h> char * msg = "Hello, World!\n"; char * wMsg = "Content of the window.."; char * const wCaption = "Window title"; char * const wCaption222 = "Window title"; int var = 999999999999999; int main...

alex parker posted a comment on discussion Help
22.06.2022

hi i want to write an inline asm code and call a windows API in it. i am using code::blocks with Mingw, in windows environment and i get this error while trying to compile a x86 version of my code: undefined reference to `MessageBoxA' my x86 code: #include <iostream> #include <windows.h> #include <winuser.h> char * msg = "Hello, World!\n"; char * wMsg = "Content of the window.."; char * const wCaption = "Window title"; char * const wCaption222 = "Window title"; int var = 999999999999999; int main...

Mateusz Loskot posted a comment on ticket #940
20.06.2022

Apparently, this has been patched and fixed, see https://sourceforge.net/p/mingw-w64/mailman/message/37670051/

E.Naumovich posted a comment on discussion Open Discussion
20.06.2022

You can try these builds: https://winlibs.com/