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
14
votes
4 answers

Bash + Node.js + stdin/stdout redirection: error "not a tty"

This problem may be Windows-specific. I have not tested it on Linux or Mac. I use: Windows 7 64 Bit Node.js 8.1.3 Git for Windows 2.8.1, including GNU bash, version 4.3.42(5)-release node my-cli.js > foo.txt: Error output is not a tty node…
Marco Eckstein
  • 4,448
  • 4
  • 37
  • 48
14
votes
1 answer

C: Correct Way to Statically / Dynamically Link with MinGW-w64

Intuitively: MinGW-w64 is a Windows port of the GNU compiler tools (GCC, etc.). Pre-compiled binaries for Windows are .dll (dynamic linking) / .lib (static linking). However, MinGW-w64 uses the GNU compiler tools, it would follow that .so / .a…
Vladislav Martin
  • 1,504
  • 2
  • 15
  • 34
13
votes
2 answers

Pip on MINGW64?

I was trying to install Jupyter via MSYS2 shell on a Windows 10 machine (as per https://jupyter.org/install, "Installing Jupyter with pip") - and the process crashed; then I found this: jupyter notebook fails to start · Issue #1540 ·…
sdaau
  • 36,975
  • 46
  • 198
  • 278
13
votes
5 answers

Distribute a program compiled with MinGW g++

Let's say I have created and compiled a simple program using the MinGW 64 (g++ compiler). Running this program on my computer and looking in Process Explorer for what DLL files the program is using I find (among many…
jensa
  • 2,792
  • 2
  • 21
  • 36
13
votes
1 answer

Different results for idiv instruction

Take a look at this piece of code int main() { int i = 1U << 31; // assume this yields INT_MIN volatile int x; x = -1; x = i / x; //dividing INT_MIN by -1 is UB return 0; } It invokes undefined behavior on typical platform, but…
ntysdd
  • 1,206
  • 2
  • 9
  • 19
13
votes
2 answers

How to use MinGW-w64 with Cygwin?

MinGW-w64 has been available with Cygwin at least since December 2010. However I am having hard time using this to compile almost anything. I have set symbolic links with alternatives p=x86_64-w64-mingw32 alternatives \ --install…
Zombo
  • 1
  • 62
  • 391
  • 407
13
votes
3 answers

How to obtain pre-built *debug* version of Python library (e.g. Python27_d.dll) for Windows

Firstly, I should state that my current development environment is MSYS + mingw-w64 + ActivePython under Windows 7 and that on a normal day I am primarily a Linux developer. I am having no joy obtaining, or compiling, a version of the Python library…
codeasone
  • 1,953
  • 2
  • 23
  • 30
12
votes
3 answers

Where is make on msys2/mingw-w64?

On msys2, I installed the mingw-w64 toolchain. I can run gcc from MINGW64 shell, but not make. pacman claims mingw-w64-x86_64-make is installed. What gives?
Thomas Sharpless
  • 949
  • 1
  • 8
  • 14
12
votes
2 answers

MinGW GCC 4.9.1 and floating-point determinism

I wrote a small program to compute the Euclidean norm of a 3-coordinate vector. Here it is: #include #include #include template auto norm(const std::array& arr) -> T { T res{}; …
Morwenn
  • 21,684
  • 12
  • 93
  • 152
12
votes
3 answers

Building 64-bit Python extensions with f2py on Windows

I'm attempting to build a Python extension from Fortran source using Numpy's f2py.py script. I'm following the steps from http://www.scipy.org/F2PY_Windows (web archive). My system is Windows 7 64-bit, and I primarily use Python 2.7.3 [MSC v.1500 64…
Mike T
  • 41,085
  • 18
  • 152
  • 203
12
votes
2 answers

"Dual-target" MinGW-w64 isn't really dual-target?

When I try to compile a 32-bit program on a 64-bit host with MinGW-builds: T:\mingw64>.\bin\g++ -m32 Test.cpp I get: t:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible…
user541686
  • 205,094
  • 128
  • 528
  • 886
11
votes
1 answer

thread_local shared_ptr object is causing sigsegv when destructing

I have a program, which is using thread_local std::shared_ptr to manage some objects that are mainly accessed thread-locally. However when the thread is joined and the thread local shared_ptr is destructing, there is always SIGSEGV when debugging if…
Antares
  • 113
  • 6
11
votes
1 answer

How can I build a setup.py to compile C++ extension using Python, pybind11 and Mingw-w64?

I'm currently trying to write a 'setup.py' script that when the user installs the python package automatically compiles my C++ extension bound with 'pybind11'. In Windows, I haven't got any problem making it happen with the 'VS19 MSVC' compiler. But…
Rafael
  • 402
  • 5
  • 17
11
votes
2 answers

How to list failed targets after building boost?

I am building boost on my windows using mingw-4.8.1 and have a few targets which failed. My Problem is that, I do not know which specific targets failed and which were skipped. Is there a way to list the failed/skipped targets after the build is…
Tomar
  • 174
  • 1
  • 12
11
votes
3 answers

MinGW-W64 linker skipping incompatible files when searching for third-party static libraries

I'm on Windows 7 64-bit, and I'm compiling with g++ from MinGW-W64. I'm trying to compile an application that I wrote on a Unix computer. I'm running into problems, however, when I try to link against certain third-party lib.lib files.…
Jordan
  • 695
  • 2
  • 8
  • 18