title: C: programming: How to create main.o from main.c?
body: <p>I'm trying to write a makefile and I compiled main.c. Then I'm trying to create main.o, but I'm confused as how to do so. I'm using a vi editor in UNIX. I tried <code>gcc -o main.c</code>, I get a fatal error saying that there's no input files. What went wrong?</p>