C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-23
ERRORFILE
ERRORFILE
The ERRORFILE pragma directs the compiler to send error and warning messages to a
specified file location.
filename
is the name of the error-logging file. It must be a disk file name.
define-name
is the name of a MAP DEFINE that refers to a disk file. The compiler uses the disk
file as the error-logging file.
The pragma default settings are:
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 (NS-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 fully qualified, local file name of the file in which the compiler found the
error or warning
ERRORFILE { filename | define-name }
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler Not set Not set
G-series TNS c89 utility Not set Not set
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