NonStop JMS C++ API Programmer's Guide

Using the NSJMS C++ APIs
NonStop Server for Java Message Service C++ API Programmer’s Guide526459-002
5-14
Compiling and Linking User Written C++ Programs
for use with the NSJMS C++ API
The contents of nsjmsc.h are:
The NSJMS C++ APIs classes use exceptions, and therefore require the c89 flag
-Wversion2 to be specified for compilation of the program. Use the try-catch
construct to handle exceptions thrown by the NSJMS C++ API.
For CAPI_HOME=/usr/tandem/nsjms/T2811-version, other required c89
options are:
-I $(CAPI_HOME)/include
-D_XOPEN_SOURCE_EXTENDED=1
-Wsystype=oss
-WIEEE_float
-Wextensions
-Wcplusplus
-Wversion2
If loading yjmscdll, then we must additionally provide the following option:
-Wlp64
Linking User Written C++ Programs
A /lib directory containing the archive file required for building programs using the
NSJMS C++ APIs classes is included in the installed NSJMS directory,
/usr/tandem/nsjms/T2811-version/lib/libnsjmsc.a. This archive file must
be added to the list of libraries included by nld during the linkage of programs that use
the NSJMS C++ APIs classes.
/**
* Copyright (c) Hewlett-Packard Company, 2002-2003
* Protected as an unpublished work.
* All rights reserved.
*
* The computer program listings, specifications, and documentation
* herein are the property of Hewlett-Packard Company or a third party
* supplier and shall not be reproduced, copied, disclosed, or used in
* whole or in part for any reason without the prior express written
* permission of Hewlett-Packard Company.
*/
#ifndef NSJMSC_H
#define NSJMSC_H
#include "BytesMessage.h"
#include "Consumer.h"
#include "MapMessage.h"
#include "Message.h"
#include "NSJMSException.h"
#include "ObjectMessage.h"
#include "Producer.h"
#include "Session.h"
#include "StreamMessage.h"
#include "TextMessage.h"
#endif