Hey,

I need to compile and link two C files together...what should i do to the files in order to be able to compile them as the following:

gcc file1.c main.c

and then run using ./a.out...

Can anyone tell me the steps please...thank you..

um... you pretty much just described the two steps.

$  gcc file1.c main.c 
$ ./a.out

what more do you want to do?

commented: Teach me to walk. "I put my right foot forward, then my left. Now what?" +35

how to compile 50 files

how to compile 50 *.c files