I have installed minGW, and I have a file "test.c".
I typed gcc test.c -o demo
at the command prompt, while in the directory where I saved the "test.c" file. But it didn't work; I got this message:
gcc is not recognized as internal or external command, operable program or batch file
How do I make the gcc
command work on Windows with minGW?
You are missing on
Path Variable
settings. Refer the 'Environment Settings' section on this page :http://www.mingw.org/wiki/Getting_Started