'Why does Visual Studio Code gives me gcc.exe: error : No such file or directory? [duplicate]

I just started programming in VS code (earlier used to code in Dev C) and I encountered with a strange error. Let me explain what happens. I create a new file with C extension. Write my program. Run it. It works. Then I save it. Close VS Code. Opens the program from the place where it's saved. VS Code opens up and I try to run it, I come across this error.

PS C:\Users\Malay\AppData\Local\Temp> cd "e:\C Data base\" ; if ($?) { gcc day 8 hw3.c -o day 8 hw3 } ; if ($?) { .\day 8 hw3 }
gcc.exe: error: day: No such file or directory
gcc.exe: error: 8: No such file or directory
gcc.exe: error: hw3.c: No such file or directory
gcc.exe: error: 8: No such file or directory
gcc.exe: error: hw3: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.

How to solve it?



Solution 1:[1]

Just remove the spaces from the filename. That'll do the work.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Arkapriya Gupta