1 Star 0 Fork 0

DOS汇编/cpp-docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
compiler-command-line-syntax.md 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
descriptiontitlems.datehelpviewer_keywordsms.assetid
Learn more about: Compiler Command-Line SyntaxMSVC Compiler Command-Line Syntax11/04/2016
syntax, CL compiler command linecl.exe compiler, command-line syntax
acba2c1c-0803-4a3a-af25-63e849b930a2

Compiler Command-Line Syntax

The CL command line uses the following syntax:

CL [option...] file... [option | file]... [lib...] [@command-file] [/link link-opt...]

The following table describes input to the CL command.

Entry Meaning
option One or more CL options. Note that all options apply to all specified source files. Options are specified by either a forward slash (/) or a dash (-). If an option takes an argument, the option's description documents whether a space is allowed between the option and the arguments. Option names (except for the /HELP option) are case sensitive. See Order of CL Options for more information.
file The name of one or more source files, .obj files, or libraries. CL compiles source files and passes the names of the .obj files and libraries to the linker. See CL Filename Syntax for more information.
lib One or more library names. CL passes these names to the linker.
command-file A file that contains multiple options and filenames. See CL Command Files for more information.
link-opt One or more MSVC Linker Options. CL passes these options to the linker.

You can specify any number of options, filenames, and library names, as long as the number of characters on the command line does not exceed 1024, the limit dictated by the operating system.

For information about the return value of cl.exe, see Return Value of cl.exe .

[!NOTE] The command-line input limit of 1024 characters is not guaranteed to remain the same in future releases of Windows.

See also

MSVC Compiler Options

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

搜索帮助