다음을 통해 공유


Compiler Command Line Syntax (Windows CE 5.0)

Send Feedback

All of the compiler command lines use the same syntax.

CL [[option...]] file... [[option | file]]... [[lib...]] [[/link link-opt...]][[@response-file]]

The following table shows the arguments of the compiler execution command.

Argument Description
Option Specifies one or more compiler options. For more information, see Compiler Options.
Note   All options apply to all specified source files.
File Specifies the name of one or more source files, object files, or libraries.

You must specify at least one file name.

The compiler compiles the source files and passes the names of the object files and libraries to the linker.

Lib Specifies one or more library names.

The compiler passes the names of these libraries to the linker for processing.

Link-opt Specifies one or more linker options.

The compiler command passes these options to the linker for processing. For more information, see Linker Options.

Response-file Specifies a response file that can contain multiple options and file names you would otherwise type on the command line or specify by setting the CL environment variable.

You can specify any number of options, file names, and library names, as long as the length of the command line does not exceed the limit dictated by the OS.

See Also

Compiler and Linker Build Options | Response Files | Environment Variables for CL.exe and Link.exe

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.