djake said:
Why does a Win compiler like cl.exe can be able to create all the
object files only by passing the main source, while in Unix I have to
specify every object to be compiled?
Huh? I believe you're basing your question on the wrong premise that
"a Win compiler" creates all the object files by passing "the main
source" (whatever you mean by that).
Aside from minor differences in the way they handle source files, all
compilers are pretty much the same, they process (translate) modules
one by one and convert them into object modules (which are later
linked into a library or an executable). 'cl.exe' (I believe you
mean the Visual Studio compiler driver) is really no different.
If you need to know more about a particular compiler, please consider
posting to the newsgroup dedicated to that compiler.
V