Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 758 Bytes

order-of-cl-options.md

File metadata and controls

14 lines (11 loc) · 758 Bytes
title ms.date f1_keywords helpviewer_keywords ms.assetid
Order of CL Options (C++) - Visual Studio
12/14/2018
cl
cl.exe compiler, setting options
300908ce-ae00-4b45-964b-e4e69ff6777b

Order of CL Options

Options can appear anywhere on the CL command line, except for the /link option, which must occur last. The compiler begins with options specified in the CL environment variable and then reads the command line from left to right — processing command files in the order it encounters them. Each option applies to all files on the command line. If CL encounters conflicting options, it uses the rightmost option.

See also

MSVC Compiler Command-Line Syntax