/c (Compile Without Linking)

The /c option instructs CL to compile all C source files given on the command line, creating object files; it does not link the object files. When you specify the /c option, CL does not produce an executable file. Regardless of its position on the command line, this option applies to all source files on the command line.

Example

CL /c FIRST.C SECOND.C THIRD.OBJ

This example compiles FIRST.C, creating the object file FIRST.OBJ, and then compiles SECOND.C, creating the object file SECOND.OBJ. No processing is performed with THIRD.OBJ because CL skips the linking step.