Skip to content

Latest commit

 

History

History
78 lines (63 loc) · 2.72 KB

File metadata and controls

78 lines (63 loc) · 2.72 KB
title Compiler Options | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
cl.exe compiler
IPF Visual C++ compiler
Itanium Visual C++ compiler
compiler options, C++
x64 Visual C++ compiler
ms.assetid ed3376c8-bef4-4c9a-80e9-3b5da232644c
caps.latest.revision 18
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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.

Note

You can start this tool only from the [!INCLUDEvsprvs] command prompt. You cannot start it from a system command prompt or from File 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.

Finding an Option

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

Specifying Options

The topic for each compiler option discusses how it can be set in the development environment. For information on specifying options outside the development environment, see:

Related Build Tools

Use NMAKE to build your output file.

Use BSCMAKE to support class browsing.

Linker options also affect how your program is built.

See Also

C/C++ Building Reference
Setting Compiler Options
Fast Compilation
CL Invokes the Linker