So, I've been trying to teach myself to program as a hobby. However, I can not get Visual Studio Code to run a simple "Hello World" program for me. I always get the following error:
gcc.exe: error: Hello: No such file or directory
gcc.exe: error: World.c: No such file or directory
gcc.exe: error: World: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
For reference, I have already installed MinGW and added the base files in environments on my PC. I have also installed the C/C++ Extension in VS Code. I have also installed C/C++ Compile Run and Code Runner. I have also tested to make sure MinGW is working properly in the command prompt. For what I can find, all I need to do is typ in "gcc" and if it returns:
gcc: fatal error: no input files
compilation terminated.
then it is set up correctly. I have no idea what is wrong and the googler guides I have tried to follow don't give me much more information. Any ideas?
Also, here is the "Hello World" program I am trying to run:
Code
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello World!"\n);
return(0);
}