MinGW-w64 offline installer

Although the following isn’t fully tested yet, an offline installer seems unnecessary. Based on some screenshots for a bug report, the online installer asks the following questions… Version ………. seems to be the GNU GCC version number Architecture ….. i686 / x86_64 Threads ………. posix / win32 Exception …….. dwarf / sjlj / seh Build … Read more

Sorry, unimplemented: 64 bit mode not compiled in

When running mingw-64-install.exe, you have to choose the x86_64 architecture on the settings screen. With this architecture, 64-bit is also the default target. If you run g++ -v, you should get something like: C:\>g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=C:/Program\ Files/mingw-w64/x86_64-5.3.0-posix-seh-rt_v4-rev0/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/5.3.0/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../../../src/gcc-5.3.0/configure –host=x86_64-w64-mingw32 –build=x86_64-w64-mingw32 –target=x86_64-w64-mingw32 –prefix=/mingw64 –with-sysroot=/c/mingw530/x86_64-530-posix-seh-rt_v4-rev0/mingw64 –with-gxx-include-dir=/mingw64/x86_64-w64-mingw32/include/c++ –enable-shared –enable-static –disable-multilib … Read more

How do I compile and link a 32-bit Windows executable using mingw-w64

That depends on which variant of toolchain you’re currently using. Both DWARF and SEH variants (which come starting from GCC 4.8.0) are only single-target. You can see it yourself by inspecting the directory structure of their distributions, i.e. they contain only the libraries with either 64- or 32-bit addressing, but not both. On the other … Read more

How can I install MinGW-w64 and MSYS2?

Unfortunately, the MinGW-w64 installer you used sometimes has this issue. I myself am not sure about why this happens (I think it has something to do with Sourceforge URL redirection or whatever that the installer currently can’t handle properly enough). Anyways, if you’re already planning on using MSYS2, there’s no need for that installer. Download … Read more

What is difference between sjlj vs dwarf vs seh?

There’s a short overview at MinGW-w64 Wiki: Why doesn’t mingw-w64 gcc support Dwarf-2 Exception Handling? The Dwarf-2 EH implementation for Windows is not designed at all to work under 64-bit Windows applications. In win32 mode, the exception unwind handler cannot propagate through non-dw2 aware code, this means that any exception going through any non-dw2 aware … Read more

Does MinGW-w64 support std::thread out of the box when using the Win32 threading model?

To use the MinGW-w64 with Win32 native threads you can install the mingw-std-threads headers. As described on that page, this is because MinGW-w64 is a port of GCC, but GCC does not include any native thread support. Instead GCC installations typically implement threading via either gthreads or pthreads as a part of glibc. MinGW-w64 does … Read more

How to install MinGW-w64 and MSYS2?

Unfortunately, the MinGW-w64 installer you used sometimes has this issue. I myself am not sure about why this happens (I think it has something to do with Sourceforge URL redirection or whatever that the installer currently can’t handle properly enough). Anyways, if you’re already planning on using MSYS2, there’s no need for that installer. Download … Read more