Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Declaring C++ to Fortran ILC z/OS Language Environment Writing Interlanguage Communication Applications SA38-0684-00 |
|
An extern linkage specification is required for C++ to call Fortran and for Fortran to call C++. All entry declarations are made in the C++ code; no special declaration is required in the Fortran routine. The specification allows the C++ routine to pass arguments and return values to and from the Fortran routine using an internal argument list compatible with Fortran. The extern linkage specification has the following format:
declaration is a valid C++ prototype of the Fortran program being called by C++, or the C++ routine being called by Fortran. |
Copyright IBM Corporation 1990, 2014
|