On 9/11/06, Rocky Ou <rocky2winnie@gmail.com> wrote:
On 9/11/06, Michael Marsh <michael.a.marsh@gmail.com> wrote: > On 9/11/06, Rocky Ou <rocky2winnie@gmail.com> wrote: > > lover@YUNNAN:~$ gcc good.c > > gcc: good.c: No such file or directory > > gcc: no input files > > lover@YUNNAN:~$ > > Silly question but, is there a file called "good.c" in that directory? No. What I want to do is use gcc to make a file or start gcc.
That's not how gcc works. It's a compiler, not an interactive application. You'll need to use either a text editor or an IDE to create your source code files. gcc only works on existing and complete files, which it then turns into either object files or executables. There are plenty of books and online tutorials that should tell you the basics of writing C code. -- Michael A. Marsh http://www.umiacs.umd.edu/~mmarsh http://mamarsh.blogspot.com