Export (0) Print
Expand All
2 out of 8 rated this helpful - Rate this topic

Setting Compiler Options

Compiler options can be set either in the development environment or on the command line.

In the Development Environment

The topic for each compiler option discusses how it can be set in the development environment. See Compiler Options for a complete list.

Outside the Development Environment

You can set compiler (CL.exe) options:

Options specified in the CL environment variable are used every time you invoke CL. If a command file is named in the CL environment variable or on the command line, the options specified in the command file are used. Unlike either the command line or the CL environment variable, a command file allows you to use multiple lines of options and filenames.

Compiler options are processed "left to right," and when a conflict is detected, the last (rightmost) option wins. The CL environment variable is processed before the command line, so in any conflicts between CL and the command line, the command line takes precedence.

Additional Compiler Topics

See Also

C/C++ Building Reference | Compiler Options

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.