Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 952
Coder88 Avatar asked Nov 09 '22 00:11

Coder88


1 Answers

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

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

like image 85
Sahil Arora Avatar answered Nov 14 '22 22:11

Sahil Arora