How to compile a C program?
Asked by
Mary Ann Hancock
I am trying to compile C programs with the terminal, however, I can not do this. When others show me it works, so I must be missing something. This is what the terminal looks like:
maryann@ubuntu:~$ ls
a.out class128Modify.c Desktop Examples Lab0.c Pictures Templates
class128.c class128Modify.c~ Documents lab0.c Music Public Videos
maryann@ubuntu:~$ gcc.lab0.c
bash: gcc.lab0.c: command not found
maryann@ubuntu:~$
I do not understand what the error message means. Can someone please help!
Thanks,
Mary Ann
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu gcc-4.2 Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Federico Vera
- Solved:
- Last query:
- Last reply:
To post a message you must log in.