Questions tagged [mingw-w64]

The MinGW-w64 (MinGW fork) project is a complete runtime environment for gcc to produce binaries native to Windows 64-bit and 32-bit operating systems.

Mingw-w64 delivers runtime, headers and libs for developing both 64 bit (x64) and 32 bit (x86) windows applications using GCC and other free software compilers.

Features:

  • Compiler toolchain hosts natively
  • Supports Native TLS Callbacks
  • Supports Wide-Character Startup (-municode)
  • Supports 32-bit and 64-bit Windows i386/x64
  • Supports Multilib toolchains
  • Supports bleeding edge gcc/binutils

Official Website: http://mingw-w64.sourceforge.net/index.php

Useful Links:

Note: if you are using 'default' MinGW:

1587 questions
179
votes
2 answers

What is difference between sjlj vs dwarf vs seh?

I can't find enough information to decide which compiler should I use to compile my project. There are several programs on different computers simulating a process. On Linux, I'm using GCC. Everything is great. I can optimize code, it compiles fast…
sorush-r
  • 10,490
  • 17
  • 89
  • 173
133
votes
24 answers

Git Bash (mintty) is extremely slow on Windows 10 OS

I installed Git on my Windows 10 a couple of months ago. It worked well for some time. But now, it's running very slow. The git status command takes 7 seconds to execute, and git stash takes many minutes for stashing (even if there is nothing to…
Rohan Bhatia
  • 1,870
  • 2
  • 15
  • 31
127
votes
21 answers

How to add man and zip to "git bash" installation on Windows

I am using git bash on Windows - that is git for Windows via the integrated bash. Apparently it uses the MINGW/MSYS underpinning. (Update from @VonC: It now uses msys2 since msysgit is obsolete since Q4 2015.) So there are already a lot of MSYS…
halloleo
  • 9,216
  • 13
  • 64
  • 122
112
votes
4 answers

How can I install MinGW-w64 and MSYS2?

I am trying to build some open source library. I need a package management system to easily download the dependencies. At first I am using MinGW and MSYS. But the included packages are limited. Someone told me to use Mingw-w64 and MSYS2. I…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
99
votes
9 answers

Why is "MINGW64" appearing on my Git bash?

I had to format my laptop, and so I had to install Git again. However it is quite different from the one I had yesterday, the icon is not the default orange one anymore, it looks more like Chrome now. The bash is quite different, including a purple…
FelipeKunzler
  • 1,204
  • 1
  • 11
  • 17
79
votes
3 answers

Why can't Git Bash run my executable?

I am on git-for-windows Git Bash. I can't run an executable on the command line: Pedr@Abc-07 MINGW64 /c/dev $ ls sqlite3.exe sqlite3.exe* Pedr@Abc-07 MINGW64 /c/dev $ sqlite3 bash: sqlite3: command not found Why is it so?
user182917
  • 1,688
  • 2
  • 14
  • 17
62
votes
1 answer

Meaning of options in mingw-w64 installer

In the MinGW-W64 online installer there are several fields you can select. However I cannot find any documentation on this, and the guesses I've made don't give me the behaviour I want. Clearly a lot of work has gone into this project so it seems a…
M.M
  • 138,810
  • 21
  • 208
  • 365
59
votes
7 answers

mingw-w64 installer "the file has been downloaded incorrectly"

I am trying to install mingw-w64 onto Windows. However I receive an error, "the file has been downloaded incorrectly". Redownloading the setup file again from sourceforge does not fix the problem. Is there an alternative way to install it or am I…
Crook
  • 733
  • 1
  • 6
  • 9
56
votes
1 answer

Using C++11 futures: Nested calls of std::async crash: Compiler/Standard library bug?

After experiencing crashes when introducing nested calls of std::async in my real program, I was able to reproduce the problem in the following minimum example. It crashes often, but not always. Do you see anything what goes wrong, or is it a…
SebastianK
  • 3,582
  • 3
  • 30
  • 48
35
votes
1 answer

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

I am using Ubuntu 13.04 and installed mingw-w64 using apt-get install mingw-w64. I can compile and link a working 64-bit version of my program with the following command: x86_64-w64-mingw32-g++ code.cpp -o app.exe Which generates a 64-bit app.exe…
user103935
  • 460
  • 1
  • 4
  • 9
34
votes
8 answers

How to change HOME directory and start directory on MSYS2?

I have installed MinGW-w64 and MSYS2. But how do I change the HOME directory in MSYS2? So that when I type cd $home or cd ~ it goes to another directory that I defined. And how do I write a code so that the starting directory is always where the…
Coder88
  • 1,015
  • 3
  • 10
  • 23
33
votes
4 answers

MSYS vs. MinGW: internal environment variables

MSYS2 default shell (bash) can be started choosing among three launchers, which also set the environment variable MSYSTEM. Specifically: msys2_shell.bat sets it to MSYS mingw64_shell.bat sets it to MINGW64 and mingw32_shell.bat sets it…
antonio
  • 10,629
  • 13
  • 68
  • 136
33
votes
4 answers

How do I invoke the MinGW cross-compiler on Linux?

I have a project that I want to cross-compile for Windows. I have the appropriate Makefile and everything works with g++. I've run $ apt install mingw-w64 and downloaded 500 MB of packages, but I cannot find out how to actually run it. There is no…
Martin Melka
  • 7,177
  • 16
  • 79
  • 138
30
votes
4 answers

MinGW-w32 vs. MinGW

What's the difference between the MinGW project and the 32-bit portion of the MinGW-w64 project? Does the 32-bit portion of MinGW-w64 have any relation to x64 at all? It seems like their compilers do the exact same things...
user541686
  • 205,094
  • 128
  • 528
  • 886
30
votes
1 answer

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

I opted for the Win32 threading model when installing the MinGW-w64 toolchain, after reading that it provides better performance than the POSIX counterpart. I am not qualified for benchmarking this claim myself, but here's a source. At first I…
Marc.2377
  • 7,807
  • 7
  • 51
  • 95
1
2 3
99 100