Compiling and running a C++ Client application

Refer to the sample programs for more information about compiling and linking programs; see Sample programs.

Your C++ program source needs #include statements to include either cicseci.hpp, for the ECI classes, or cicsepi.hpp, for the EPI classes. These files are in the <install_path>\include subdirectory on Windows® or the <install_path>⁄ include subdirectory on UNIX® and Linux®.

Define the following macros on UNIX and Linux operating systems, when compiling C++ applications that use the CICS® C++ libraries.
Operating system Macro
AIX® CICS_AIX
HP-UX CICS_HPUX
Linux CICS_LNX
Solaris CICS_SOL
Start of changeOn HP-UX Itanium® hardware all C++ applications must be compiled with the -AP flag in order to run successfully with the CICS Transaction Gateway, for example:
aCC -AP -DCICS_HPUX file.cpp
End of change

Start of changeOn Windows operating systems, the CICS Transaction Gateway API DLL is built using the synchronous model of C++ exception handling which assumes that external C functions do not throw exceptions. This support is true for both Microsoft Visual C++ .NET 2003 and Microsoft Visual C++ 2005 compilers. End of change