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
25
votes
3 answers

How to use MinGW-64 with Qt Creator

I am aware that there are many post about this, but I honestly didn't understood any of it. So, how do I install a kit for my Qt Creator (open source 5.7)? I already downloaded and installed MSYS2.... don't know what to do with it. I already…
andseg
  • 658
  • 1
  • 9
  • 26
24
votes
4 answers

Building a dll with Go 1.7

Is there a way to build a dll against Go v1.7 under Windows ? I tried a classic go build -buildmode=shared main.go but get -buildmode=shared not supported on windows/amd64 update Ok, I've got my answer. For those who are interested…
Stef
  • 3,691
  • 6
  • 43
  • 58
23
votes
2 answers

Sorry, unimplemented: 64 bit mode not compiled in

This is what I'm trying to do(on Windows 7 64-bits): g++ -m64 -o main main.cpp And the error I get is: Sorry, unimplemented: 64 bit mode not compiled in ... I installed mingw-64-install.exe from here:…
lads
  • 1,125
  • 3
  • 15
  • 29
21
votes
2 answers

msys2: not finding windows programs despite (MSYS2_PATH_TYPE = inherit)

Using MSYS2 64-bit version 20161025 on Windows 10... I'm unable to get msys2 to recognize programs in the windows path. For example, after installing Go version 1.8.3 using the windows the installer: (1) Cygwin finds go.exe (2) the Windows command…
Mya256
  • 311
  • 1
  • 2
  • 3
20
votes
4 answers

MinGW-w64 offline installer

is there any way to install mingw-w64 offline ? I tried many official sources and all of them seem to need some sort of internet access. I'm looking for something that works for both x32 and x64 systems. I tried to have a look at the official…
Costi Ivan
  • 241
  • 2
  • 4
  • 12
20
votes
2 answers

Build Python with Mingw and gcc

Is it possible to build Python interpreter from source with Mingw and gcc on Windows 7? And I would like to biuld a 64bit version. If a 64bit Python (gcc Mingw) version is available for download please let me know, I would use that also. At the end…
Theuns Heydenrych
  • 449
  • 1
  • 4
  • 12
19
votes
4 answers

Executing a script in MSYS2/MinGW

On Windows, if I start c:\msys64\mingw64.exe, it opens a shell, where I can build my project, let's say by calling a release bash script (to simplify). Everything works fine. Now, I would like to execute my release script on mingw64 directly,…
rom1v
  • 2,752
  • 3
  • 21
  • 47
19
votes
1 answer

MinGW-w64's gcc and Address Sanitizer

Installing MinGW-w64 5.1 I find -fsanitize=address is available. It compiles fine, and when it starts linking I get thousands of: undefined reference to '__asan_report_load1' undefined reference to '__asan_report_load4' I googled and found libasan…
Rick C. Hodgin
  • 483
  • 5
  • 11
19
votes
2 answers

The procedure entry point __gxx_personality_sj0 could not be located in...

I have managed to (somehow) cross-compile Qt5 with the Mingw-w64 Project's compiler for 32-bit Windows. All of the libraries have been installed to ~/i686-w64-mingw32. I have a CMake-based Qt project that I am trying to cross-compile. By following…
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
18
votes
5 answers

Installing the latest version of mingw-w64 on Windows

I am desperately trying to install the latest version of mingw-w64 to get acess to gcc 10 on windows 10. I used the online installer for mingw-w64 in the past, but it is still stuck in 2018 on 8.1.0 and seems to be abandoned. So i tried installing…
kayosa
  • 181
  • 1
  • 1
  • 3
16
votes
1 answer

How can I make CMake use Mingw-w64 gcc/g++?

I am on Windwos trying to get Mingw-w64 to work with CMake since my MSVC is somehow not working at all (using Windows10 64bit. Basically I add the arguments -DCMAKE_CXX_COMPILER="C:/MinGW-w64/mingw64/bin/g++.exe"…
Leslie
  • 333
  • 1
  • 3
  • 12
16
votes
3 answers

clang/clang++ doesn't find C/C++ headers in windows?

1 hour ago I downloaded llvm-3.6.0-rc4-win32.exe from http://llvm.org/pre-releases/3.6.0/ . I tried to compile simple C code that just print "hello" , but it didn't compile , because clang.exe can't find stdio.h. when I use clang-cl.exe with the…
CodeMan
  • 339
  • 1
  • 2
  • 13
15
votes
3 answers

MinGW-w64 8.1.0 rev 0 doesn't compile when including

2 days ago, I was excited to note that MinGW-w64 released its gcc 8.1.0, revision 0. Unfortunately, a simple program #include int main() {} does not compile. It results in a bunch of errors inside , starting…
René Richter
  • 3,839
  • 3
  • 34
  • 42
15
votes
3 answers

How to prevent MSYS to convert the file path for an external program

I'm porting a Linux script to Windows & MinGW, which accesses the Android phone through ADB. Sometime I need to pass the Android's file path as ADB command line option. However, when invoking the ADB.exe, MinGW translates it to Windows' path. For…
Tony
  • 363
  • 3
  • 13
14
votes
3 answers

Clang 8 with MinGW-w64: How do I use address- & UB sanitizers?

Clang 8 release notes have this promising line: Allow using Address Sanitizer and Undefined Behaviour Sanitizer on MinGW. However, I unable to figure out how to use those properly. I'm using Clang 8.0.0 with MSYS2 MinGW GCC. Exact details are at…
HolyBlackCat
  • 78,603
  • 9
  • 131
  • 207