First you need to get MinGW.
http://MinGW.orgWhen you install this, you should put it into a directory just off the root of your main, boot drive, like this:
X:\MinGW
where X: is the drive letter of your Windows installation.
After you install it, you need to edit your OS environment table.
Right click on My Computer. Go to Properties. Click on the Advanced tab. Click on the button labeled "Environment Variables".
If you have never had any kind of C or C++ compiler on your system before, you will need to add new variables to the environment.
Click on the New button.
Variable name: include
Variable value: X:\MinGW\include
Click on the New button.
Variable name: lib
Variable value: X:\MinGW\lib
Make sure you replace X: with the correcxt driver letter for your Windows installation.
You also need to edit the value of "Path". Select it in the list below and click on the Edit button.
Add this to the beginning of the Variable value: line
X:\MinGW\bin;
Note the semicolon at the end of this statement. Just add this to the beginning and do not remove any other portion of the value of Path. Again, replace X: with the appropriate drive letter.
That's It!
You now have GCC ready and waiting for you at the command prompt, just like you would on a Linux machine!
Now you need to install Dev-C++ so that you have a nice GUI interface to an Integrated Development Environment for GNU C & C++.
Go here:
http://bloodshed.net/dev/devcpp.htmlAnd get Dev-C++ WITHOUT MINGW!
When you install it, it will find that you already have the most up-to-date version of MinGW (GCC) installed on your Windows machine!
James.