z/OS Language Environment Writing Interlanguage Communication Applications
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Calling between C and C++

z/OS Language Environment Writing Interlanguage Communication Applications
SA38-0684-00

Table 1 describes the types of calls between C and C++ that Language Environment allows:

Table 1. Calls permitted for C to C++ ILC
Direction of call Static calls Dynamic calls using DLLs Fetch/fetchep
C to C++ Yes Yes Yes
C++ to C Yes Yes Yes
Note:
  1. The fetch() function can be used to fetch modules, compiled DLL, or modules containing C++ routines, but exported data will not be available.
  2. Any of the C or C++ functions can be compiled with the XPLINK option, with the single restriction that you cannot mix XPLINK and non-XPLINK in the same module (that is, XPLINK and non-XPLINK C or C++ cannot be statically bound together).

As of C/C++ for MVS/ESA V3, the compiler provides support for dynamic load libraries (DLLs) which can be used to dynamically access C or C++ functions or data. For more information about DLLs, see z/OS XL C++ Programming Guide.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014