Calling a FORTRAN subroutine from C

前端 未结 3 1949
刺人心
刺人心 2020-11-27 17:00

I am trying to call a FORTRAN function from C

My questions are:

  1. If fortRoutine is the name of my fortran subroutine, then I am calling

3条回答
  •  执笔经年
    2020-11-27 17:48

    The answer depends upon the compiler and the system (technically, its ABI). For GCC (which is a C, a C++, an Ada, and a Fortran compiler) read the fortran mixed programming chapter.

提交回复
热议问题