Steps followed
- Downloaded the MinGW file from this link http://sourceforge.net/projects/mingw/files/.
- After downloading, I installed the MinGW and selected only c and c++ option during my installation option, which downloaded some files from internet and showed the information in cmd prompt.
- MinGW is successfully installed in "C:\MinGW".
- Now the next step is to set the path variable in my Environment.
- My Computer - Right click - Properties - Advanced system settings.
- Environment variable - path
- Select path and press edit.
- Add the MinGW bin path, so that the command line interpreter will know where to find them.
- Add - ";C:\MinGW\bin" .Make sure you add ";" at the beginning of the path.

