Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 982 Bytes

command-line-warning-d9026.md

File metadata and controls

19 lines (14 loc) · 982 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Command-line warning D9026
Command-line warning D9026
12/09/2021
D9026
D9026
149fe5e3-5329-4be8-b871-49dfd423aaba

Command-line warning D9026

options apply to entire command line

A global option was specified after one or more filenames were specified. The option was also applied to the files that preceded it.

For example, consider this command line:

CL verdi.c /O2 puccini.c

Both the files verdi.c and puccini.c will be compiled using the /O2 option, not the /Od default. This behavior may be unexpected, because it differs from some other compilers and from early versions of the cl.exe compiler. Those compilers applied only the options specified before the filename. They'd use /Od to compile verdi.c and compile puccini.c using /O2. The warning tells you that options apply to all the files on the command line.