Declarations for extern "COBOL" linkage

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.