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

I downloaded and installed MinGW. I used a graphics program to install the C ++ compiler.

Entering gcc at the Windows command prompt prints:

 gcc is not recognized as an internal or external command 

I checked and gcc.exe present in C:\MinGW\bin . What's wrong?

+7
c ++ gcc windows mingw
source share
3 answers

Or, on the command line, you should enter "\ mingw \ bin \ gcc" instead of "gcc". It is best to set up the environment as described above.

+5
source share

Please edit the Path variable to add a semicolon and then the location "C: \ MinGW \ bin" and DO NOT use any spaces in this.

+3
source share

this may be obvious, but don't forget that the PATH environment variable is case sensitive.

0
source share

All Articles