MinGW: Difference between revisions

From Rosetta Code
Content added Content deleted
(MinGW also does C.)
(Ada, C, C++, Fortran, Objective-C.)
 
Line 1: Line 1:
{{implementation|Ada}}
{{implementation|C}}
{{implementation|C}}
{{implementation|C++}}
{{implementation|C++}}
{{implementation|Fortran}}
{{implementation|Objective-C}}


[http://www.mingw.org/ MinGW] is a port of [[GCC]] to [[Windows]].
[http://www.mingw.org/ MinGW] is a port of [[GCC]] to [[Windows]].


MinGW can compile C, C++, and some other languages. The compiled programs are <tt>.exe</tt> files; they can use the Microsoft C runtime <tt>MSVCRT.DLL</tt> and several other Microsoft libraries.
MinGW can compile Ada, C, C++, Fortran and Objective-C. The compiled programs are <tt>.exe</tt> files; they can use the Microsoft C runtime <tt>MSVCRT.DLL</tt> and several other Microsoft libraries.


Microsoft includes the DLL libraries with Windows. MinGW provides the import libraries and the header files, like <windows.h> and <stdio.h>.
MinGW also provides the import libraries (like <tt>libadvapi32.a</tt> and <tt>libmscvcrt.a</tt>) and the header files (like <windows.h> and <stdio.h>). GCC needs these to compile programs that use the Windows API. The compiled programs only need the DLL libraries. Microsoft includes the DLL libraries with Windows.

MinGW always produces 32-bit code for x86. MinGW never produces 16-bit nor 64-bit code.

Latest revision as of 17:34, 28 April 2011

MinGW is an implementation of Ada. Other implementations of Ada.
MinGW is an implementation of C. Other implementations of C.
MinGW is an implementation of C++. Other implementations of C++.
MinGW is an implementation of Fortran. Other implementations of Fortran.
MinGW is an implementation of Objective-C. Other implementations of Objective-C.

MinGW is a port of GCC to Windows.

MinGW can compile Ada, C, C++, Fortran and Objective-C. The compiled programs are .exe files; they can use the Microsoft C runtime MSVCRT.DLL and several other Microsoft libraries.

MinGW also provides the import libraries (like libadvapi32.a and libmscvcrt.a) and the header files (like <windows.h> and <stdio.h>). GCC needs these to compile programs that use the Windows API. The compiled programs only need the DLL libraries. Microsoft includes the DLL libraries with Windows.

MinGW always produces 32-bit code for x86. MinGW never produces 16-bit nor 64-bit code.