1 Star 0 Fork 0

DOS汇编/cpp-docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
compiler-options.md 1.90 KB
一键复制 编辑 原始数据 按行查看 历史
TylerMSFT 提交于 5年前 . acrolinx
descriptiontitlems.datehelpviewer_keywords
Learn more about: Compiler OptionsMSVC Compiler Options12/14/2020
cl.exe compilerx86 MSVC compilerARM MSVC compilercompiler options, C++x64 MSVC compiler

Compiler Options

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.

Find a compiler option

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

Specify compiler 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

MSVC Linker Options also affect how your program is built.

See also

C/C++ Building Reference
CL Invokes the Linker

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dosasm/cpp-docs.git
git@gitee.com:dosasm/cpp-docs.git
dosasm
cpp-docs
cpp-docs
master

搜索帮助