Example of declaration for C++ calling Fortran
The following example shows a partial C++ routine that calls a Fortran function. The calling C++
routine contains the extern "FORTRAN"
linkage specification for the Fortran
function FORTFCN, the function prototype for the Fortran function, and a static call to the Fortran
function.
C++ routine | Fortran function |
---|---|
|
|