Gcc is not recognized as an internal or external command, operable program or batch file

“GCC is not recognized as an internal or external command” error occurs when the MinGW installation folder is not included in the PATH Environment Variable on your Windows computer. So, simply adding that folder to the Path will fix this error and then, you can run GCC from the command prompt. Let’s discuss how to fix the error by adding the MinGW installation folder to the PATH using GUI.

To fix ‘GCC is not recognized as an internal or external command’ error

The first thing we need to do is confirm whether this error occurs due to the missing MinGW installation folder in the Path environment variable or not. In order to do so, simply launch a Command Prompt window on your PC and run the command – Set Path.

Have a look at the output in which the Path should include the MinGW folder. If you don’t find it, then it’s clear why the error is being triggered. As we now know the cause of this error, we need to now edit the Environment Variable Path.

The Path Environment variable value can be changed or edited by opening the Environment Variables console on your PC. And then, we need to look for the Path inside the System Variables section. Follow the steps below –

Step 1

On your Windows computer, there will be a search box that sits right next to the Start button on the taskbar. Simply, click on that search bar and start typing environment variables.

Step 2

Now, as you type, the search suggestions will start to pop-up from which you need to select the Edit the system environment variables option.

Step 3

The System Properties window will now be opened. Make sure the Advanced tab is opened or else, click on that tab to open that section. Then, click on the Environment Variables button that will be at the bottom of the window.

Step 4

The Environment Variables window will be launched in which you need to have a look at the System Variables section. Now, scroll down until you find the Path variable and its value.

Step 5

Then, select Path and click on the edit button. The Edit Environment window will now be opened. Now, select the path that you have seen when you executed the Set Path command in CMD and click on the Edit button.

Step 6

Now, type “;c:\MinGW\bin” at the end of the selected Path value and click Ok in order to edit the Path.

These are all the steps that should be followed in order to fix the “GCC is not recognized as an internal or external error command” error in the Command Prompt. I hope this worked for you too. If you still have doubts regarding resolving this error, feel free to post a question here at FAQwalla.

Top Categories

[Solved] gcc is not recognized as an internal or external command operable program or batch file

  • Category: Information Technology
  • Sub Category: Web Development

2078 Views

No Likes

No Dislikes

gcc is not recognized as an internal or external command operable program or batch file and the term 'gcc' is not recognized as the name of a cmdlet function script file or operable program are few common error people using gnu gcc compiler encounter while using C compiler to compile their c files.

gcc is not recognized as an internal or external command operable program or batch file and the term 'gcc' is not recognized as the name of a cmdlet function script file or operable program are few common error people using gnu gcc compiler encounter while using C compiler to compile their c files. In this video I will not only solve this issue for you but explain you the reason for the same and how to avoid it in the future! ►Click here to subscribe - https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww Best Hindi Videos For Learning Programming: ►Learn Python In One Video - https://www.youtube.com/watch?v=qHJjMvHLJdg ►Learn JavaScript in One Video - https://www.youtube.com/watch?v=onbBV0uFVpo ►Learn PHP In One Video - https://www.youtube.com/watch?v=xW7ro3lwaCI ►Machine Learning Using Python - https://www.youtube.com/playlist?list=PLu0W_9lII9ai6fAMHp-acBmJONT7Y4BSG ►Creating & Hosting A Website (Tech Blog) Using Python - https://www.youtube.com/playlist?list=PLu0W_9lII9agAiWp6Y41ueUKx1VcTRxmf ►Advanced Python Tutorials - https://www.youtube.com/playlist?list=PLu0W_9lII9aiJWQ7VhY712fuimEpQZYp4 ►Object Oriented Programming In Python - https://www.youtube.com/playlist?list=PLu0W_9lII9ahfRrhFcoB-4lpp9YaBmdCP ►Python Data Science and Big Data Tutorials - https://www.youtube.com/playlist?list=PLu0W_9lII9agK8pojo23OHiNz3Jm6VQCH Follow Me On Social Media ►Website (created using Flask) - https://www.codewithharry.com ►Facebook - https://www.facebook.com/CodeWithHarry ►Instagram (Guaranteed Replies :)) - https://www.instagram.com/haris_magical/ ►Personal Facebook A/c - https://www.facebook.com/geekyharis Twitter - https://twitter.com/Haris_Is_Here

You Might Be Interested In

Gcc is not recognized as an internal or external command, operable program or batch file

Top Videos

How do you fix GCC is not recognized as an internal or external command operable program or batch file?

Make sure to set value in the System variable and not in the user variable. Add gcc compiler path upto bin folder in the variable value as shown below and click OK. Close all windows and open new command prompt and compile your program. Now it will compile your program without any error.

How do I fix GCC is not recognized in Visual Studio?

You are getting the massage 'gcc' is not recognized as an internal or external command, operable program or batch file because you do not have the gcc compiler installed on your computer..
C/C++ extension in Visual Code..
msys64 installed in C:\.
Add path to msys64 bin folder in environment variable..

How do I get GCC to work on Windows?

C/GCC Compiler.
Step 1: Search MinGW C Compiler on the Web. ... .
Step 2: Download MinGW. ... .
Step 3: Locate the MinGW-get-setup.exe File and Start Installation. ... .
Step 4: Specify Installation Preferences. ... .
Step 5: Download and Set up MinGW Installation Manager. ... .
Step 6: Select Packages Required for the Compiler. ... .
MinGW32-base Package..

How do I fix G + is not recognized as an internal?

You need to set the environment PATH to include the directory of mingw's bin directory if you want o use gcc.exe or g++.exe in cmd . run 'path' or 'echo %PATH% in cmd.exe prompt.