[beginner] Trying to compile C program

  • Thread starter Thread starter Chup
  • Start date Start date
C

Chup

Im learning C, and have been using Gedit in a VM with an online course.

I've just installed Ubuntu over my Win7 laptop and am trying to compile / run a basic program. (hello world basic ! )

I've got Gedit, have written the program, saved it to documents (test.c) and gone to the directory in the terminal - but when I type the following :

gcc -o test test.c

As per this instruction I get the error :

gcc: error: test: No such file or directory

I'm sure I'm doing something wrong on a pretty simple level....

Any ideas?

cheers

Continue reading...
 
Back
Top