CL Environment Variable
Instead of command line options or response files, you can also use the CL environment variable to specify files and options. The command to set the CL environment variable has the following syntax:
SET CL=[[ [[option]] ... [[file]] ...]] [[/link [[ link-libinfo]] ]]
The CL environment variable is useful for specifying a large number of files and options. The files and options that you define with the CL environment variable do not incur the MS-DOS 128-character limit for the command line. You can define the files and options you use most often with the CL variable, and then give only the files and options you need for specific purposes on the command line.
If you have given an option in the CL environment variable, you cannot turn off or change the option from the command line. You must reset the CL environment variable and omit the file or option that you do not want to use.
You can use wildcards in file names to specify multiple files with CL.
See Also
Compiler Setup Mechanisms | Compiler Command Line Options | Response Files
Last updated on Thursday, April 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.