Evgeny Pirogov
2018-03-04 19:51:16 UTC
Hello, Robert.
I have found some kind of instruction in GNU Fortran web site for you.
https://gcc.gnu.org/onlinedocs/gfortran/Non-Fortran-Main-Program.html#Non-Fortran-Main-Program
but if you want to use PInvoke with your dll, you should not reference it
but create native calls wrapper for you in C#.
https://software.intel.com/en-us/articles/calling-fortran-function-or-subroutine-in-dll-from-c-code
I hope it helps with your research.
Yevhen
I have found some kind of instruction in GNU Fortran web site for you.
https://gcc.gnu.org/onlinedocs/gfortran/Non-Fortran-Main-Program.html#Non-Fortran-Main-Program
but if you want to use PInvoke with your dll, you should not reference it
but create native calls wrapper for you in C#.
https://software.intel.com/en-us/articles/calling-fortran-function-or-subroutine-in-dll-from-c-code
I hope it helps with your research.
Yevhen