Compiling and linking a C++ 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.
The CICS Transaction Gateway C++ interface supports 32-bit multi-threaded applications.
On a Linux distribution the libstdc++ Linux package is required when compiling a C++ application.
Refer to the sample programs for more information about compiling and linking programs; see Building C++ sample programs.
| Operating system | Macro |
|---|---|
| IBM® AIX® | CICS_AIX |
| Linux® | CICS_LNX |
| Windows | CICS_W32 |
On UNIX and Linux operating systems a C++ application must link to the libcclcp.so shared object file available in <install_path>/lib.
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. The Visual Studio exception handling compiler option used with building the CICS Transaction Gateway API DLL is /EHsc. When building a C++ application with Visual Studio 2012 link with cclcpw32.lib, when building with Visual Studio 2013 link with cclcpw32vc12.lib, the lib files are available in <install_path>/lib.