8.21.2. Calling Convention in Fortran

A Fortran function must be linked with the /iface:stdref calling convention option. When a Fortran function is called by a C/C++ subroutine, the function and variables in the function will be treated under the rule of STDCALL and REFRENCE. The option of name case interpretation must be defined as /names:uppercase. For Intel Visual Fortran, these options can be defined in the project property page as shown in the figure below.

Figure 8.113: Project options in Intel Visual Fortran

Project options in Intel Visual Fortran