After installing minGW, gcc command is not recogni

2020-04-21 08:48发布

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?

1条回答
做自己的国王
2楼-- · 2020-04-21 09:03

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

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

查看更多
登录 后发表回答