C/C++ Programmer's Guide (G06.25+)

Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
13-110
WARN
or instead of: #include <iostreah> (Guardian)
For VERSION3 you can use the standard header names without truncation as long
as you also use the CPATHEQ file named SLMAP as described in Pragmas for the
Standard C++ Library on page 5-12.
The T2824 C++ headers include a few that end with .h (such as fstream.h and
iomanip.h) for compatibility with previous C++ versions. If you include one of
these .h header files when using VERSION3, the compiler issues this error:
This header file is incompatible with C++ version 3
HP recommends that VERSION3 users use the C-name headers that are part of
the Standard C++ Library instead of the older C headers. For example, specify:
#include <cstdio>
instead of:
#include <stdio.h>
If you include the RUNNABLE option when compiling VERSION3 on Guardian (or if
you do not include -c on OSS), the compiler automatically links the following:
°
ZSTLSRL or ZCPPCDLL and ZCPP3DLL (the Standard C++ Library and the
C++ run-time library)
°
LIBCOBEY for a TNS/R program (an OBEY file that links the C run-time library
and the Common Run-Time Environment [CRE])
°
CPPINIT3.O for non-PIC code, or CPPINIT4.O for TNS/R PIC (allows you
to override the new and delete functions)
For information about TNS/R SRLs, see Shared Run-Time Libraries (SRLs) on
page 16-13. For more information about the TNS/E DLLs, see Dynamic-Link
Libraries (DLLs) on page 17-13.
WARN
The WARN pragma controls the generation of all or selected warning messages. The
WARN pragma enables the compiler to generate all or a selected set of warning
messages, and NOWARN disables the compiler from generating all or a selected set of
warning messages.
[NO]WARN [ warning-list ]
warning-list:
( warning-number [, warning-number ]... )