DekGenius.com
[ Team LiB ] Previous Section Next Section

D.5 C++ Compiler (cl.exe)

Table D-5 shows some of the common uses of the C++ compiler.

Table D-5. C++ compiler common uses

Option

Description

/CLR

This option flags the compiler to compile .NET-runtime managed code.

/entry:methodname

For C++ managed code, this link setting should point to the main entry-point function.

/link

This option combines the compile and link steps.

/subsystem:|windows|windowsce|console|

This link option specifies the type of output.

/out:filename

This option allows for the output filename.

    [ Team LiB ] Previous Section Next Section