Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual C++
Compiler Options

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual C++ Compiler Options
Compiler Options

cl.exe is a tool that controls the Microsoft C and C++ compilers and linker. cl.exe can be run only on operating systems that support Microsoft Visual Studio. For more information, see the "Operating System" row of the tables in Visual Studio Editions and Hardware Requirements.

NoteNote:

You can start this tool only from the Visual Studio command prompt. You cannot start it from a system command prompt or from Windows Explorer.

The compilers produce Common Object File Format (COFF) object (.obj) files. The linker produces executable (.exe) files or dynamic-link libraries (DLLs).

Note that all compiler options are case sensitive.

To compile without linking, use /c.

To find a particular compiler option, see one of the following lists:

For information on specifying options, see:

Use NMAKE to build your output file.

Use BSCMAKE to support class browsing.

Linker options also affect how your program is built.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker