Troubleshooting Codeblocks on Windows: Fixing "gcc is not recognized" Error

  • Thread starter Thread starter towuzzi
  • Start date Start date
Click For Summary
The discussion centers on troubleshooting the "gcc is not recognized as an internal or external command" error in Windows Command Prompt. The user has already added the GCC bin directory to the environment variables but still encounters issues. A suggestion is made to clarify whether the user intends to compile and debug a program or run a completed application. It is noted that using Code::Blocks can simplify the process, as it can compile and run programs directly without needing to use the command line. If the user prefers using CMD, it is emphasized that the path to GCC must be entered correctly, as any minor error can lead to the same error message.
towuzzi
Messages
8
Reaction score
0
when i hit gcc into cmd on windows it replies by saying that "gcc is not recognized as internal or external command and yes i have copied the address of the bin to the environment viariables
so basically how do i get it running in cmd
 
Technology news on Phys.org
Towuzzi,

I can try to help with this, but I would like some more information in order to know exactly what you're looking for. Are you trying to compile and run the program to debug it, or are you trying to run a program that is finished and ready for actual use?

The reason that I'm asking, is that you can run/compile your program directly from codeblocks. There's not much of a reason to attempt to run the program directly through the cmd, since codeblocks will automatically run your program in the cmd.

If you insist on running it in cmd, then make sure that the path is written exactly as it should be, any small error in the path will cause throw an error.

I hope this helps.
 
  • Like
Likes 1 person
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

Replies
14
Views
3K
Replies
7
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
8K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
8K
Replies
17
Views
6K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 2 ·
Replies
2
Views
5K