I have installed Ubuntu subsystem in Windows 10 and I also installed gcc. I wrote a simple Hello world C program and saved it in documents. When I try to compile this program I get this answer:
Tony316@DESKTOP-2ONG1CO:~$ gcc Hello.c -o Hello
gcc: error: Hello.c: No such file or directory
gcc: fatal error: no input files compilation terminated.
I think I have to put my Hello World program in the correct file for gcc to find it, but I don't know how to compile it.
I know this question may have been asked before from users that run only ubuntu in their PC, but I am running it on Windows 10 and I couldn't find anything relevant
gcc
that it's in the current directory. What doesgcc Documents/Hello.c -o Hello
produce. – waltinator Mar 23 '18 at 14:13