Re: Need advice about Mono C# + MinGW Fortran (Robert Dodier)
Evgeny Pirogov <[email protected]> Sun, 4 Mar 2018 21:51:16 +0200
| Newsgroups | gmane.comp.gnome.mono.general |
|---|---|
| Message-ID | <CAFJJ41S7Gc673LicAZ9gEivJ5K-tYhrTGAZAp6+P5OXyuMf53Q@mail.gmail.com> |
--===============0124581640035477462== Content-Type: multipart/alternative; boundary="f4f5e808e54457c12e05669b8868" --f4f5e808e54457c12e05669b8868 Content-Type: text/plain; charset="UTF-8" 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 --f4f5e808e54457c12e05669b8868 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra">Hello, Robert.</div><div class= =3D"gmail_extra"><br></div><div class=3D"gmail_extra">I have found some kin= d of instruction in GNU Fortran=C2=A0 web site for you.</div><div class=3D"= gmail_extra"><br></div><div class=3D"gmail_extra"><a href=3D"https://gcc.gn= u.org/onlinedocs/gfortran/Non-Fortran-Main-Program.html#Non-Fortran-Main-Pr= ogram">https://gcc.gnu.org/onlinedocs/gfortran/Non-Fortran-Main-Program.htm= l#Non-Fortran-Main-Program</a></div><div class=3D"gmail_extra"><br></div><d= iv class=3D"gmail_extra">but if you want to use PInvoke with your dll, you = should not reference it but create native calls wrapper for you in C#. </di= v><div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra"><a href= =3D"https://software.intel.com/en-us/articles/calling-fortran-function-or-s= ubroutine-in-dll-from-c-code">https://software.intel.com/en-us/articles/cal= ling-fortran-function-or-subroutine-in-dll-from-c-code</a></div><div class= =3D"gmail_extra"><br></div><div class=3D"gmail_extra">I hope it helps with = your research.</div><div class=3D"gmail_extra"><br></div><div class=3D"gmai= l_extra">Yevhen<br></div></div> --f4f5e808e54457c12e05669b8868-- --===============0124581640035477462== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTW9uby1saXN0 IG1haWxsaXN0ICAtICBNb25vLWxpc3RAbGlzdHMuZG90Lm5ldApodHRwOi8vbGlzdHMuZG90Lm5l dC9tYWlsbWFuL2xpc3RpbmZvL21vbm8tbGlzdAo= --===============0124581640035477462==--