C++ Compiler (cl.exe)

The following table shows some of the common usages of the C++ compiler:



/CLR or /COM+

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


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


This option combines the compile and link steps.


This option allows for the output filename.

Get .Net Framework Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.