C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
CL Environment Variable
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Use the CL environment variable to store a long sequence of
     options and filenames. If a CL environment variable is defined,
     the CL utility first uses the contents of the CL environment
     variable and then the options and filenames on the command line.
     Alternatively, a response file is a more flexible way to store
     long sequences of options and filenames.
     See: Response Files
 
     If you need to specify a command line in excess of 128 characters,
     you can use the CL environment variable to contain some of the
     options. For example, you could type
 
          SET CL="/DDEBUG#0" /Lr /Od /Zp /link SLIBCER.LIB
 
     These options are used by CL in addition to any options you
     specify on the CL command line. If you specify the CL command
 
          CL /Ob2 MYAPP.C
 
     the resulting command to CL is
 
          CL "/DDEBUG#0" /Lr /Od /Zp /Ob2 MYAPP.C /link SLIBCER.LIB
 
     Note that the commands are effectively concatenated. You can use
     NMAKE to set a temporary environment for a single compilation step
     with a description block, such as
 
          MYAPP.OBJ : MYAPP.C
              SET CL=/DDEBUG /DV100 /Lr /Od /Zp   # more CL commands
              ($CFLAGS)
              SET CL=                             # restore CL envir.
 
     See also: NMAKE
                                    -♦-