Intel® C++ Compiler XE 13.1 User and Reference Guides
Causes the results of diagnostic analysis to be output to a file.
Windows: Diagnostics > Diagnostics File
Diagnostics > Emit Diagnostics to File
Linux: Compilation Diagnostics > Diagnostics File
OS X: Diagnostics > Diagnostics File
All
Linux: | -diag-file[=filename] |
OS X: | None |
Windows: | /Qdiag-file[:filename] |
filename |
Is the name of the file for output. |
OFF |
Diagnostic messages are output to stderr. |
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.
If you specify -diag-file (Linux OS) or /Qdiag-file (Windows OS) and you also specify -diag-file-append (Linux OS) or /Qdiag-file-append (Windows OS), the last option specified on the command line takes precedence.
None