Go to Command Prompt and run the command gcc and see if it finds the command. If yes, then everything is fine.
Edit the environment variable named, "Path", dont create new one.
Edit the Path to include that bin directory after a semi colon in the end of existing value.
Something like this:
![]()
MinGW is definitely better for newbie. GUI will only be good once you had practice on command line.
Thanks for reply.
So all I needed was basically to put a semicolon in end of path? (since I just copied and pasted path to bin directory) and name variable as PATH? (I am asking this cos I uninstalled MinGW out of frustration (just deleted the MinGW folder present in C:\ drive, is that correct way to remove it?). I may go on reinstalling it again but a question, I learned java on netbeans instead of eclipse and i think it was better to have a IDE since I dont really know much command line as i am newbie in C. Then why is using IDE in C is not better than command line?
Yes. You just needed to put a semicolon in the end of the existing paths of environment variable, "PATH". Frustration is never the solution. Patience is the key. Cliche, right? But it's true nevertheless.
If you installed MinGW from an installer just deleting it from Program files is not the right way. The entry for MinGW should be showing in "Program and Features". (I think you have Windows 8).
You being a newbie is the Exact reason why you should first use command line. "Anyone" can run a program on an IDE. Are you "anyone"?![]()