Coder88
Coder88

Reputation: 1055

After installing minGW, gcc command is not recognized

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?

Upvotes: 7

Views: 34957

Answers (1)

Sahil Arora
Sahil Arora

Reputation: 885

You are missing on Path Variable settings. Refer the 'Environment Settings' section on this page :

http://www.mingw.org/wiki/Getting_Started

Upvotes: 1

Related Questions