description | title | ms.date | helpviewer_keywords | |||||
---|---|---|---|---|---|---|---|---|
Learn more about: Compiler Options | MSVC Compiler Options | 12/14/2020 |
|
cl.exe is a tool that controls the Microsoft C++ (MSVC) C and C++ compilers and linker. cl.exe can be run only on operating systems that support Microsoft Visual Studio for Windows.
[!NOTE] You can start this tool only from a Visual Studio developer command prompt. You cannot start it from a system command prompt or from File Explorer. For more information, see Use the MSVC toolset from the command line.
The compilers produce Common Object File Format (COFF) object (.obj) files. The linker produces executable (.exe) files or dynamic-link libraries (DLLs).
All compiler options are case-sensitive. You may use either a forward slash (/
) or a dash (-
) to specify a compiler option.
To compile without linking, use the /c option.
To find a particular compiler option, see one of the following lists:
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:
MSVC Linker Options also affect how your program is built.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。