Home | Overview | How Do I | Compiler Options
This option suppresses the implicit call to LINK that normally occurs; only .OBJ files are created. LINK must then be called explicity with the proper files and options to perform the linking phase of the build that will generate a final executable file, DLL, or library.
The /c option is used by default for any internal project created in the development environment (see the Compile command on the Build menu).
The following example creates the object files FIRST.OBJ and SECOND.OBJ. The file THIRD.OBJ is ignored.
CL /c FIRST.C SECOND.C THIRD.OBJ
In order to create an executable file, for example, you would next need to issue the following line:
LINK firsti.obj second.obj third.obj /OUT:filename.exe