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?
$PATH
variable. Is the directorygcc.exe
is located in included in there? If not, add it. And do some research first. I bet there's information on that on the Internet. – Theiss$PATH
than just these two. Don't change it but append a semicolon and behind that the path to the executable. – TheissC:\MinGW\bin
worked instead ofC:\MinGW\bin\
– Multifaceted