[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:

  1. Navigate inside your 'MinGW' folder and navigate to the 'bin' directory.

    bin folder path
    Tap to enlarge



  2. 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.
  3. 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

Popular posts from this blog

Basics Of recursion||recursion||recursion in C++||recursion explained||checking prime numbers using recursion||factorial using recursion||fibonacci series using recursion||GCD using recursion||LCM using recursion||Star pyramid pattern||Star pattern using recursion||String concatenation in C++||Advantages of recursion||Disadvantages of recursion||

Industrial Applicatons of C++||Uses Of C++||Where C++ is used||Real world Applications of C++||Applications made using C++||

Pointers In arrays||Dynamic Allocation||Dynamic allocation of objects||Dynamic Allocation of variables||Dynamically Allocated Arrays