C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CL Command-Line Syntax
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     CL [option...] file... [option|file]... [lib...][/link link-opt...]
 
     <option>       Specifies options that modify the compiler's
                    actions. You can mix filenames and options. In
                    some cases, an option applies to all the files
                    following it on the command line. In other cases,
                    the option applies only to the file it immediately
                    precedes.
                    See: CL Options
                         Conflicting Options
 
     <file>         Gives the name(s) of a source or an object file to
                    be processed or library to be searched at link time.
 
     <lib>          Specifies additional or different libraries,
     <link-opt>     library search paths, and linker options to be
                    used during linking. (If no libraries are given,
                    the CL command automatically specifies the
                    appropriate library to be used during linking.)
                    See: Linker-Control Options
 
     NOTES:
 
        ■ You can use the forward slash to specify options. Although
          filenames can be given in either uppercase or lowercase,
          options must be given as shown in Help. For example, the
          options /C and /c are not equivalent.
          See: Filename Conventions
 
        ■ You can use any number of options, filenames, and library
          names with the CL command. However, the command line cannot
          exceed 128 characters. If you need to specify more
          characters in your command line, use either a response file
          or the CL environment variable.
          See: Response Files
               CL Environment Variable
 
        ■ CTRL+C or CTRL+BREAK stops a compiling and linking session.
 
        ■ You can tell CL is compiling and linking by the messages that
          appear on your screen.
                                    -♦-