Questions tagged [mingw]

MinGW (Minimalist GNU for Windows) is a native software port of the GNU Compiler Collection (GCC) and GNU Binutils for use in the development of native Microsoft Windows applications. Unlike Cygwin, it does not provide a POSIX runtime environment on MS-Windows.

MinGW, a contraction of "Minimalist GNU for Windows", is a minimalist development environment for native Microsoft Windows applications.

MinGW provides a complete Open Source programming tool set which is suitable for the development of native MS-Windows applications, and which do not depend on any 3rd-party C-Runtime DLLs. (It does depend on a number of DLLs provided by Microsoft themselves, as components of the operating system; most notable among these is MSVCRT.DLL, the Microsoft C runtime library. Additionally, threaded applications must ship with a freely distributable thread support DLL, provided as part of MinGW itself).

MinGW compilers provide access to the functionality of the Microsoft C runtime and some language-specific runtimes. MinGW, being Minimalist, does not, and never will, attempt to provide a POSIX runtime environment for POSIX application deployment on MS-Windows. If you want POSIX application deployment on this platform, please consider Cygwin instead.

Primarily intended for use by developers working on the native MS-Windows platform, but also available for cross-hosted use, MinGW includes:

  • A port of the GNU Compiler Collection (GCC), including C, C++, ADA and Fortran compilers;
  • GNU Binutils for Windows (assembler, linker, archive manager)
  • A composite multi-package installer (mingw-get), offering both graphical and command-line user interfaces, for MinGW and MSYS deployment on MS-Windows

MSYS, a contraction of "Minimal SYStem", is a Bourne Shell command line interpreter system. Offered as an alternative to Microsoft's cmd.exe, this provides a general purpose command line environment, which is particularly suited to use with MinGW, for porting of many Open Source applications to the MS-Windows platform; a light-weight fork of Cygwin-1.3, it includes a small selection of Unix tools, chosen to facilitate that objective.

Official Website: http://www.mingw.org/

Useful Links:

Note: If you are using the 64-Bit fork:
Note: For MinGW and PThreads:

6728 questions
3
votes
2 answers

Cross mingw compilation fails with unknown pseudo-op

I'm trying to setup cross-mingw on a redhat cluster (x86_64 host). I don't have root access and available mingw binaries don't work (bad glibc ver, etc.). I'm going through this…
Marcin Zaluski
  • 687
  • 5
  • 10
3
votes
6 answers

GNU CC and Windows

I'm a bit confused about the options for using GNU CC on Windows. If I want to primarily develop console applications (as opposed to GUI apps) what do I need? Where do Cygwin and MinGW figure? For example, if I use the NetBeans IDE C/C++ option,…
Paul
3
votes
3 answers

How to instal MinGW in openSUSE, Linux flavour?

What is the procedure to install MinGW for openSUSE and also send me the link where I could get a proper MinGW installation package.
suse
  • 10,503
  • 23
  • 79
  • 113
2
votes
1 answer

Mingw static lib used in a MSVC project

Is it possible to use a static library that was compiled with mingw in a visual studio MSVC project? Both projects are C++. I haven't found a clear answer on that. Note that I'm talking about a static library and not a DLL.
J. Volkya
  • 993
  • 3
  • 14
  • 33
2
votes
1 answer

MinGW / GNU Make - "multiple target patterns"

I'm using MinGW 3.18 under Windows XP SP2, GNU make 3.82. I'm trying to incorporate a value returned by a script in a path and receive an error. This works: PROD_DIR=$(ROOT_DIR)/PROD version=1.1.1 PROD_SOURCE_files = \ file1 \ …
2
votes
1 answer

Change PKG_CONFIG_PATH of pkg-config in MinGW

I want to change the directory where pkg-config looks for .pr files. I'm using pkg-config under MinGW on Windows. I found that this can be done by changing the PKG_CONFIG_PATH environment variable using export PKG_CONFIG_PATH=[path]. The .pr files I…
simon
  • 1,125
  • 1
  • 10
  • 20
2
votes
2 answers

Questions about implementing QThread in my application?

As suggested in this question, I am now trying to incorporate multithreading. According to the links given by karlphillip, I understand that the documentation about subclassing QThread is not to be followed and to use moveToThread() as explained.…
ustulation
  • 3,600
  • 25
  • 50
2
votes
2 answers

GUI design issues using C++ , Qt on Windows (Vista)

This concerns C++ (MinGW), Qt, Windows Vista: all this while i's developing non-GUI applications in C++. Recently i decided to try a GUI one in Qt and am having some design issues. Here's the problem: step 1: Load and display a background gif…
ustulation
  • 3,600
  • 25
  • 50
2
votes
1 answer

Visual Studio 2010 and MinGW

I have a bunch of old C code, which I compiled using MinGW, and copied the generated library files to a VS C++ DLL (C++/CLI) Project (named NBIS) directory and added them to the Linker->Input Files setting. The content of this field for each…
Kevin Mangold
  • 1,167
  • 8
  • 21
2
votes
5 answers

Compiling SystemC library in Mingw32

I have been trying to compile systemC library in Mingw32 and I am getting an error when I run the "configure" command which says that the architecture is not supported. Anyone out there solved this problem?
R.B
  • 31
  • 1
  • 2
2
votes
1 answer

Cmake with MinGW fails compile test

I am trying to compile OpenCV on windows using CMAKE and MinGW on Windows. However, when I try to do that I am getting the following error: The C compiler identification is GNU The CXX compiler identification is GNU Check for working C compiler:…
gintas
  • 2,118
  • 1
  • 18
  • 28
2
votes
2 answers

Code::Blocks Compilation Errors

I'm having some problems with Code::Blocks, and this is the output after / while compiling; 3|iostream: No such file or directory| 4|error: syntax error before "namespace"| |In function `main':| 8|error: `cout' undeclared (first use in this…
Jack Wilsdon
  • 6,706
  • 11
  • 44
  • 87
2
votes
1 answer

Is there a workaround for _Complex syntax in VC++?

I've got a library compiled with MinGW which supports the C99 Keywords, _Complex. I'd like to use this library with MSVC++ 2010 compiler. I've tried to temporarily switch off all the _Complex syntax code, so that it compiles. I found most of the…
xing_yu
  • 393
  • 1
  • 10
2
votes
2 answers

undefined reference to ‘_imp__InitBizLib’

I am getting the error above when trying to use a 3rd party SDK with a C++ program written using eclipse on XP. Based on searches I understand that this error is caused by the linker not correctly pointing to the .dll or .lib. I have included the…
OnesAndZeros
  • 383
  • 2
  • 18
2
votes
1 answer

How do I statically link a program with ffmpeg on Windows?

I have been trying what works automatically on Linux for hours now on, or for, Windows. I want to link a program (PhenoCam, but for this question only the short sample ffmpeg program listed below) with ffmpeg. Setup Currently I am on Linux,…
Simon A. Eugster
  • 4,114
  • 4
  • 36
  • 31