So I pretty much finished typing a hello world program and saved it on my desktop as a text file. How do I use the gcc command to compile my program.
I've used this and I get an error.
gcc -Wall -o Hello Hello.c
This is my error here:
gcc: Hello.c: No such file or directory
-
Haha it works I had to rename my original file as Hello.c
I was missing the ".c" this thread can be closed now moderator. -
Remember to execute Hello World you need ./
In case you forgot. -
Also, Linux is case sensitive about filenames.
"Hello World" I need help!
Discussion in 'Linux Compatibility and Software' started by graycolor, Feb 6, 2010.