ILE C/C++ Programmer's Guide

Linkage Specification


C++ language only
If you want a C++ program to call an ILE, OPM, or EPM program (*PGM), use the extern "OS" linkage specification in your C++ source to tell the compiler that the called program is an external program, not a bound ILE procedure. For example, if you want a C++ program to call an OPM COBOL program (*PGM) this extern "OS" linkage specification in your C++ source tells the compiler that COBOL_PGM is an external program, not a bound ILE procedure.

extern "OS" void COBOL_PGM(void);

If you want an ILE, OPM or EPM program to call a C++ program, use the ILE, OPM, or EPM language-specific call statement.


[ Top of Page | Previous Page | Next Page | Table of Contents ]