| CSC448: Overview: Installing MinGW [14/133] | ![]() ![]() ![]() |
The compiler produces assembly language output. An assembler is used to produce object files, and a linker is used to produce executable files.
It is also useful to have:
We use MinGW: Minimalist GNU For Windows : free; small download; fast; powerful but unfriendly debugger.
Why MinGW?
Install MinGW:
MinGW-3.1.0-1.exe and install to
c:\mingw (other directories will not work).
c:\mingw\bin to the PATH
environmental variable (see setup.bat in the examples directory).
To verify the installation, try compiling and running a hello world C program:
gcc -o build\hello.exe src\hello.c
build\hello.exe
For example:
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char *argv[])
{
printf ("Hello World!\n");
return 0;
}