Given Microsoft FORTRAN 5.1 and Microsoft C/C++ 14.0, along with the linker that comes with that version of FORTRAN (that must be used for other dependencies) how do I create a C function and call it from the FORTRAN application?
Given Microsoft FORTRAN 5.1 and Microsoft C/C++ 14.0, along with the linker that comes
Share
You have two choices.
1) I can show with example
FORTRAN
C/C++
This works w/gcc toolchain. You’ll have to dumpbin on the DLL and fortran object code to see if the names match up correctly.
The other way is similar:
FORTRAN
C/C++
COMPILE COMMAND
Hope this helps