Compiler and Linker Build Options (Windows CE 5.0)
You can specify compiler build options
- On the command line
- In response files
- In the CL environment variable.
The compiler uses options specified on the command line only once; it uses options specified in a response file or with the CL environment variable every time you invoke the compiler.
For information about how to use compiler build options, see Compiler Command Line Syntax.
In addition, a response file allows you to use multiple lines of options and file names.
Compiler command options consist of a forward slash (/) or a dash (–) followed by one or more letters.
Certain options take arguments. In some of these options, a space is required between the option and the argument; in others, no space is allowed. For more information about the spacing rules for each option, see Compiler Option Reference.
Except for the /link - Linker-Control Options option, options can appear anywhere on the compiler command line.
The compiler reads options from left to right. It begins with options specified in the CL environment variable and reads the content of response files when it encounters an @filename during its left-to-right scan of the command line.
After gathering all options, the compiler applies each option to all files on the command line. If the compiler encounters a conflicting option, it uses the rightmost option.
The /link option precedes all options to be passed to the linker.
Send Feedback on this topic to the authors