diag-file, Qdiag-file

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

IDE Equivalent

Windows: Diagnostics > Diagnostics File

Diagnostics > Emit Diagnostics to File

Linux: Compilation Diagnostics > Diagnostics File

Mac OS X: Diagnostics > Diagnostics File

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux:

-diag-file[=filename]

Mac OS X:

None

Windows:

/Qdiag-file[:filename]

Arguments

filename

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. The file is placed in the current working directory.

You can include a file extension in filename. For example, if file.txt is specified, the name of the output file is file.txt. If you do not provide a file extension, the name of the file is filename.diag.

If filename is not specified, the name of the file is name-of-the-first-source-file.diag. This is also the name of the file if the name specified for file conflicts with a source file name provided in the command line.

Note iconNote

If you specify -diag-file (Linux) or /Qdiag-file (Windows) and you also specify -diag-file-append (Linux) or /Qdiag-file-append (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 output to a file named my_diagnostics.diag:

-diag-file=my_diagnostics       ! Linux systems
/Qdiag-file:my_diagnostics      ! Windows systems

See Also


Submit feedback on this help topic

Copyright © 1996-2011, Intel Corporation. All rights reserved.