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


Declarations for extern "COBOL" linkage

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

For C++ to COBOL ILC, the C++ extern "COBOL" linkage specification lets the XL C++ compiler generate parameter lists for or accept them from COBOL.

The extern "COBOL" linkage specification has the following format:

extern "COBOL" { declaration }

declaration is a valid C++ prototype of the COBOL program being called by C++, or the C++ routine being called by COBOL.

Note: The reference to COBOL in the following declarations applies to Enterprise COBOL for z/OS, COBOL for OS/390 & VM, COBOL for MVS & VM, COBOL/370, and VS COBOL II.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014