Jump to content

Featured Replies

Posted

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...