fatal error: helloworld.c: No such file or directory

75 Views Asked by At

I'm completely new to programming, and it's my first time learning C. I'm trying to run the Hello World program. I'm using Utm, Arch Linux to run it however I'm getting this error.

[root@alarm ~]# gcc helloworld.c -o helloworld

cc1: fatal error: helloworld.c: No such file or directory compilation terminated.

On the UTM, my shared directory is "ArchLinuxShared" and I entered it in my text editor and saved it as “helloworld.c”. I get that error when I try to access it from the Linux bash window and compile it. What am I doing wrong and how do I fix it?

0

There are 0 best solutions below