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

Compiler and Linker Build Options (Windows CE 5.0)

Windows CE 5.0
Send Feedback

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 /HELP - List the Compiler Options option, options are case sensitive. For example, /C - Preserve Comments During Preprocessing and /c - Compile Without Linking are different options.

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.

See Also

Windows CE Compiler Overview | Compiler Options


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


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