compiling and linking 2 C files ...??

Hi mates,
I am trying to copile and link to C programs with command:

cc file1,file2

but i raises the error "file not found" ... am i doing the right way?

any suggestion will be appreciated.

thanks

abdul

Try with a space in between, instead of a comma.

Or, put a space after the comma.

Hello-

  Maybe I'm interpreting this wrong, but you want to compile two SEPARATE progs, not use one as an include for the other?  
In the first case, I yield to the other posts and say go with the space in between, but it really looks to me like you want to compile some related progs that are function declarations or something \(forgive the c\+\+, it is my first love over and above C\)???  
In that case, make the one that needs to be compiled first an include:

gcc -include file1.cc file2.cc

If that helps at all, I'm pleased,

Gratzi,

loadc

hi!

try this:

cc -c file1.c
cc file2.c file1.o

a.out is the executable created

Shaik