diag-file-append, Qdiag-file-append

Causes the results of diagnostic analysis to be appended to a file.

IDE Equivalent

None

None

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS X:  -diag-file-append[=file]
Windows:  /Qdiag-file-append[:file]

Arguments

file Is the name of the file to be appended to. It can include a path.

Default

OFF Diagnostic messages are output to stderr.

Description

This option causes the results of diagnostic analysis to be appended to a file. If you do not specify a path, the driver will look for file in the current working directory.

If file is not found, then a new file with that name is created in the current working directory. If the name specified for file conflicts with a source file name provided in the command line. the name of the file is name-of-the-first-source-file.diag.

Note

If you specify -diag-file-append (Linux and Mac OS X) or /Qdiag-file-append (Windows) and you also specify -diag-file (Linux and Mac OS X) or /Qdiag-file (Windows), the last option specified on the command line takes precedence.

Alternate Options

None

Example

The following example shows how to cause diagnostic analysis to be appended to a file named stat_ver.txt:

-diag-file-append=stat_ver.txt       ! Linux and Mac OS X systems
/Qdiag-file-append:stat_ver.txt      ! Windows systems
 

See Also

diag, Qdiag compiler option

diag-file, Qdiag-file compiler option