CORBA 2.3.3 Getting Started Guide (NonStop CORBA 2.3.3+)

Chapter 5. Running the C++ Stack Example
Prev
Next
Chapter 5. Running the C++ Stack Example
Table of Contents
The Stack Example Overview
Building the Stack Example
The Makefile Script
Running the Stack Example
Once you have installed your Compaq NonStop CORBA software and configured your system, you can
test the operation of your system by running a simple CORBA program.
The stack example works well to test your systemit is a simple but working CORBA program that has
both a client and a server implemented in C++ and in Java. This section describes the C++ version. See
Running the Java Stack Example for the Java version.
This topic guides you through the steps you need to follow to see the example run.
The Stack Example Overview
The Stack example can be found in the samples/stack subdirectory of your NonStop CORBA installation.
The README file in this directory describes how this program works, and the functions of the different
files contained in the example.
Building the Stack Example
The stack example contains a file named Makefile which lets you build the stack sample on NonStop
CORBA. The Makefile performs the required steps to construct the executable components. Macros that
are used in the Makefile are defined in etc/macros.mk.
To build the sample:
Make sure you are in the samples/stack directory of the NonStop CORBA installation, or
copy the files to a new directory.
1.
Make sure you have sourced the etc/env.sh script, which sets environment variables (see
Configuration and Management Using Commands for details about customizing and sourcing this
file).
2.
Run the make script by using the following command:
make
3.