cl
The Microsoft C/C++ compiler for compiling and linking source code files. More information: https://learn.microsoft.com/cpp/build/reference/compiler-command-line-syntax.
- Compile a source file:
cl
- Compile and create an executable with a custom name:
cl /Fe
- Compile a source file with optimization enabled:
cl /O2
- Compile a source file and create a debug executable:
cl /Zi
- Compile multiple source files:
cl
- Specify the output directory for compiled files:
cl /Fo \
- Compile with warnings as errors:
cl /WX
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
