[solved] gcc is not recognized error || Windows solution || Fix compiler not found error || How to set environment variables || How to set path in windows
[Error Solved] gcc is not recognized as internal or external command, operable program or batch file / minGW not found
By- Yashvardhan Singh
Since many of you may face this issue here is a separate blog on it. This error is encountered when the system is not able to access GCC command as it is not mentioned in the environment variables which means that your system is simply not aware of that any such thing can be accessed or not from outside that directory (the bin folder).
Solution:
-
Navigate inside your 'MinGW' folder and
navigate to the 'bin' directory.
Tap to enlarge
-
Copy this path and open Environment Variables (either search it in the windows start menu or find it in Control Panel -> System -> Advanced System Setting). Click edit path (from the system variables tab) then in the new window click new.
-
Now paste this copied path and click OK to save everything.
Tap to enlarge
Done! That was it, now you may restart your code editor and continue writing and compiling your programs with ease.
Thanks for reading!
Comments
Post a Comment