C/C++ Programmer's Guide (G06.25+)
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
13-23
ERRORFILE
Usage Guidelines
•
The ERRORFILE pragma can appear only on the RUN command line (not in the
source file) for NMC or NMCPLUS (G-series Guardian) or for CCOMP or
CPPCOMP (H-series Guardian).
•
The effect of the ERRORFILE pragma can be achieved with the 2> operand of the
c89 utility.
•
If the specified disk file does not already exist, the compiler creates an entry-
sequenced file (file code 106) using the specified file name.
•
If the specified file is an existing error file with file code 106, the compiler replaces
the contents of the existing file with the new error file.
•
If the specified file is an existing file but is not an error file, the compiler terminates
and displays the message:
ERRORFILE not created
•
The error file contains one record for each error or warning message that the
compiler found during compilation. Each error record contains the following:
°
The fully qualified, local file name of the file in which the compiler found the
error or warning
°
If you specified a DEFINE name for the name of the source file, the name of
the file to which the DEFINE evaluated appears in this entry
°
The EDIT line number in which the error or warning occurred
°
The column number in the line where the compiler detected the error/warning
°
The error or warning message text
TNS/R native C and C++ compilers Not set Not set
Native c89 utility Not applicable Not applicable
TNS/E native C and C++ compilers Not set Not set
SYSTYPE GUARDIAN SYSTYPE OSS