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
1 answer

(wxWidgets, Windows) Program icon works but not in alt+tab or close box

I'm writing a Windows app using WxWidgets. I've created the .rc file with my icon resource in it, and my program shows up in Explorer with the designated icon. However, it only shows up with a generic icon in Task switcher (alt+tab) and in the…
Donald Burr
  • 2,281
  • 2
  • 23
  • 31
2
votes
1 answer

gdb crash in my Qt project

I have installed Qt libraries, minGW and Creator with net-install. If I run application without debug it is work successful, but if I use debug - system alert "unexpected output: gdb crash". My system: Qt 4.8.0 minGW 4.4 Windows 7 SP1 x64
Jakeroid
  • 205
  • 2
  • 11
2
votes
1 answer

OpenCV 2.3 & Code::Blocks small framework setup questions

I'm trying to setup a small framework for opencv 2.3.x with the mingw compiler in Code::Blocks. I want the framework to be moved from computer to computer (multiple developers) - something like a micro version of openFrameworks. What I have done now…
hansdam
  • 127
  • 3
  • 11
2
votes
1 answer

How to concatenate two strings with C and MinGW?

How do I concatenate (or even assign) two strings (TCHAR arrays, I guess) in MinGW with GCC? StrCatBuff? #include and -lshlwapi do work, but you're not supposed to use it _tcscat? Seems not to exist StringCchCat Seems not to exist.…
AndreKR
  • 32,613
  • 18
  • 106
  • 168
2
votes
4 answers

Dice Rolling Program generates the same sequence of random numbers on every run

I wrote a program that rolls a die with a user-specified number of sides. The problem is, it's too predictable. I'm using the CodeBlocks IDE, and the compiler is GCC. The program compiles nicely as both debug and release builds, but no matter what…
user1185827
  • 33
  • 2
  • 5
2
votes
1 answer

Can mingw be used to compile code for Windows Vista or 7?

I noticed that the included headers for Windows development (such as Windows.h) are essentially for Windows XP and older. I am unable to call functions such as GetTickCount64 because they require Windows Vista or higher. I have Windows 7, but these…
TheBuzzSaw
  • 8,648
  • 5
  • 39
  • 58
2
votes
1 answer

MinGW system() system call and %PATH% behaviour

I am trying to compile ATLAS with MinGW. I started to solve problems, but now I'm stuck with a simple one: the Makefile of ATLAS tries to probe OS with an uname.exe which is provided with MinGW. If I run MinGW shell (sh.exe) I can call uname. If I…
WebMonster
  • 2,981
  • 2
  • 22
  • 29
2
votes
3 answers

problems using the -ansi switch in MinGW 3.4.5

I was reading about the flags used in gcc, and read a reccommendation to use gcc -ansi -pedantic -Wall file1 [file2 [file3...]] -o output. For the quality of my code's sake, to keep it standard, and get all the warnings about it. Well, about…
Carson Myers
  • 37,678
  • 39
  • 126
  • 176
2
votes
4 answers

read() only reads a few bytes from file

I wanted to read the content of a file using the read() function. I tried the following: #define BUFFER_LENGTH (1024) char buffer[BUFFER_LENGTH]; // The first version of the question had a typo: // void read_file(const char filename) // This would…
Giorgio
  • 5,023
  • 6
  • 41
  • 71
2
votes
4 answers

C Inline assembly - Operand type mismatch for 'fst'

Hey Im trying to learn how to write assembly code in my C programs. I understand integers in assembly but floats continue to trip me up. double asmSqrt(double x) { double o; __asm__ ("fld %1;" "fsqrt;" "fst %0;" …
Dan
  • 138
  • 1
  • 4
2
votes
5 answers

Eclipse Ganymede and MinGW in Windows

I'm trying to get eclipse to work with MinGW. I've done the following: Downloaded CDT for eclipse. Installed MinGW. Added C:\MinGW\bin to my path. Opening a command prompt (CMD) and typing g++ or alike works fine. I run eclipse, create a "New C++…
WhyNotHugo
  • 9,423
  • 6
  • 62
  • 70
2
votes
1 answer

Importing MakeFile as MingW Project

I have a MingW exported MakeFile ,which compiles great. The MingW project file (.mdsp) wasn't committed in cvs at all. Is there a way i can import the MakeFile as MingW Project or .mdsp generatore from MakeFile ? I wanted to use MingW in linux,…
Manikandaraj Srinivasan
  • 3,557
  • 5
  • 35
  • 62
2
votes
1 answer

GLIB: configure: error: C compiler cannot create executables in windows

Configure Command is Go to Glib Directory -> run this command ./configure --prefix="Installation directory" While configure the Glib package in windows, It shows the following results. checking for a BSD-compatible install... /bin/install…
karthik
  • 17,453
  • 70
  • 78
  • 122
2
votes
1 answer

Readline for windows - developing on linux

I am developing on linux, but still release binaries for windows. I recently started using readline though, and that has broken my windows builds. Initially it was unable to find the header files, so I copied them to the mingw includes folder.…
Matt
  • 7,100
  • 3
  • 28
  • 58
2
votes
1 answer

How to create a managed build in Eclipse Phortran that supports module dependencies?

I have installed the new Phortran 7 as part of the PTP. I want to develop my code using an OOP approach which requires me to have many modules I have found that the managed build system doesn't understand dependencies in my .f90 files. I was working…
David MZ
  • 3,648
  • 6
  • 33
  • 50
1 2 3
99
100