MinGW: "gcc is not recognized as an internal or external command" MinGW: "gcc is not recognized as an internal or external command" windows windows

MinGW: "gcc is not recognized as an internal or external command"


Although an old question, none of the answers here helped me. The only route I found to get to my destination is by typing in the following line in my command prompt:

enter image description here

To copy: set Path=C:\MinGW\bin;%PATH%

After that, simply type in gcc -v.

Hope this helps anyone with the problem I had!


Or at the command line you must type in "\mingw\bin\gcc" instead of just "gcc". Best to set the environment as mentioned above.


Please edit the Path variable to append a semicolon followed by location "C:\MinGW\bin" and do NOT use any spaces while doing so.