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
2
votes
2 answers

use MinGW to create exe file in windows from GNU source package

the basic idea was, I wanted to generate the call graph in text format for several c files. After googling around for long time, i found cflow, which can deliver everything I want, but it is only runable in Linux or else. Then I began to search how…
OISS
  • 97
  • 10
2
votes
1 answer

Static cross-compilation of GTK applications on Fedora for Windows?

I'm trying to build gtk3 applications for windows and since Fedora delivers mingw and precompiled libraries for gtk3 for mingw, I used it. I got the normal compilation working via i686-mingw32-gcc test.c `pkg-config --cflags --libs…
2
votes
1 answer

cannot find stdio.h in MinGW include folder

I am trying to compile a hello world code using MingW tool chain: #include #include int main(void) { puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */ return EXIT_SUCCESS; } but I get this error message: fatal…
Kamyar Souri
  • 1,871
  • 19
  • 29
2
votes
1 answer

Cross-compiling GTK on Fedora using MinGW

I have Fedora (latest) installed as well as mingw32 and gtk packages. I wrote simple Hello world: #include int main(int argc, char* argv[]){ GtkWidget *window; gtk_init(&argc, &argv); window =…
PhoenixS
  • 1,016
  • 1
  • 9
  • 23
2
votes
1 answer

The 'Effective C++' warnings in MinGW

MinGW has this option you can enable that shows warnings suggested by Scott Meyers' Effective C++. I don't have the book, nor can I easily get a copy of it, nor do I have the time now to read it, so my question is, what exactly are these "Meyers…
Paul Manta
  • 30,618
  • 31
  • 128
  • 208
2
votes
0 answers

Netbeans 7.0.1 internal terminal doesn't work using scanf

#include int main (void) { int x; printf ("Enter integer: "); scanf ("%d", &x); printf ("You entered %d\n", x); return 0; } I'm using netbeans 7.0.1 with this version of mingw: MINGWBASEDIR=C:\MinGW gcc version 4.6.1…
GorkyAGB
  • 21
  • 2
2
votes
1 answer

py2exe mingw compile

So, I'd like to compile py2exe using mingw & I got an error. Does anybody know how to fix that? D:\devel\py2exe-0.6.9>python setup.py build -cmingw32 running build running build_py creating build creating build\lib.win32-2.7 copying…
alex
  • 521
  • 1
  • 5
  • 17
2
votes
3 answers

What does "..." in c function declaration mean?

I was going through the stdio.h header file that comes with MinGW and noticed that the printf function is declared like this: int printf (const char *__format, ...) { //body omitted } I have never seen ellipsis in function parameter list before…
Abbas
  • 6,720
  • 4
  • 35
  • 49
2
votes
1 answer

Help installing C++ for Netbeans

I am trying to install c++ for netbeans.. I tried installing the cygwin and mingw but i can't compile because the make file that comes with Mingw is incompatible ..
colb
2
votes
2 answers

namedWindow() causes crash in opencv 2.3.1? (Eclipse+MinGW on XP, C++)

I've finally managed to get opencv 2.3.1 to work with eclipse, mingw and 32 bit XP. I'll put up a howto when everzthing works, as I couldn't find one for this toolchain. The trouble is that any attempt to show the results in a window causes an…
TheMachinist
  • 298
  • 2
  • 10
2
votes
2 answers

g++: error: CreateProcess no such file or directory

I get the following error: g++: error: CreateProcess no such file or directory whenever I try to compile a program. I have installed the MinGw 7.2 version at work on a windows machine and the problem does not occur, however after installing Windows…
Marius Pirvu
  • 45
  • 1
  • 1
  • 9
2
votes
1 answer

how to get specs2 color support on windows using mingw and sbt

I am using "Git Bash" git's mingw console to run Specs2 tests using SBT on Windows. The mingw console has color support but my specs2 tests do not display in color. How can I get my mingw, sbt, specs2, windows setup to display tests in color? I…
cessationoftime
  • 896
  • 8
  • 17
2
votes
2 answers

Is it possible to port a Linux daemon to Windows using Cygwin or MinGW?

I have a Linux C++ application which run as a daemon. When user executes this application, it will be running in the background, listening on a port, and waiting for connection from the clients. Is it possible to port this kind of application to…
user010203
  • 73
  • 1
  • 3
2
votes
1 answer

Porting kernel project from DJGPP to MinGW

Trying to compile a C++ kernel project with MinGW & NASM (formerly DJGPP & NASM). Have actually tried Cygwin too, with the exact same results below: First, just swapped out \DJGPP\bin for \MinGW\bin. Got the following link error: target coff-go32…
Unsigned
  • 9,640
  • 4
  • 43
  • 72
2
votes
1 answer

Making Android NDK apps with NativeActivity?

I know that in a normal NDK build, the C++ libraries are built and packed into an apk file. But how can I automate this in Eclipse? I have tried following http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-development/ to run the…
AutoBotAM
  • 1,485
  • 3
  • 18
  • 24
1 2 3
99
100