Compiling and running a C++ Client application

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.

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

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 on Itanium CICS_HPUX and CICS_HPIT
Linux CICS_LNX
Solaris CICS_SOL
On 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 -DCICS_HPIT file.cpp

On 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.


Information Information

Feedback


Timestamp icon Last updated: Tuesday, 19 November 2013


https://ut-ilnx-r4.hursley.ibm.com/tg_latest/help/topic/com.ibm.cics.tg.doc//progde/cclaojc5.html