Home > Software design >  gcc is not recognized as a command in the vscode terminal
gcc is not recognized as a command in the vscode terminal

Time:08-27

When I try to run some very basic code(literally 5 lines) I get the error: "'gcc' is not recognized as an internal or external command, operable program or batch file." mingw is installed and added to path and when I type gcc --version in cmd everything is fine. I'm using the VSCode editor and I'm running Windows 10.

CodePudding user response:

Try to restart VSCode. I know that if you add/remove anything from PATH and VSCode was already running, you need to re-launch it for any PATH changes to work.

  •  Tags:  
  • c
  • Related