diag-file, Qdiag-file

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

IDE Equivalent

None

Architectures

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

Syntax

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

Arguments

file Is the name of the file for output.

Default

OFF Diagnostic messages are output to stderr.

Description

This option causes the results of diagnostic analysis to be output to a file.

If file is specified, the name of the file is file.diag. If file is not specified, the name of the file is name-of-the-first-source-file.diag in the current working directory.

Alternate Options

None

Example

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

-diag-file=stat_ver       ! Linux and Mac OS systems
/Qdiag-file:stat_ver      ! Windows systems
 

See Also

diag, Qdiag compiler option