Path to shell executable "d:\VsCode Projects\C\gcc" does not exist

1.2k Views Asked by At

I formated my computer yesterday and reinstalled vscode, the compiler and included it to the path, but the program doesn't generate output, here a screenshot image of the code and error) if anyone can help me fix it, it would be very helpful.

I tried restarting vscode, reinstalling c/c++ compile run extension, but didn't work, if anyone can give me a detailed explanation on how to fix this please do.

OS: Windows 11 Compiler: TDM-GCC

1

There are 1 best solutions below

0
Eminion On

If the terminal is not the proble, check the Path settings, copy the path and paste it to vs code, in my case I had the incorrect path and that is why it didn't compile.