Using a DLL/shared library created with gfortran with a program created with another compiler
Arjen Markus
arjen.markus@wldelft.nl
Mon Jan 12 19:48:00 GMT 2009
>
> Hm, this definitely calls for a bit of experimentation. I understand
> that it is not impossible then, but the build process may need some
> attention. Okay, that is what I hoped for.
>
I have done a bit of experimenting:
I could not get it to work properly using gfortran - most probably
because of the fact that gfortran produces a name in lowercase,
whereas the Intel Fortran compiler generates external names in uppercase
(at least by default).
However, using gcc it did work (it is easier to create matching names
in C, as that does not do much). And my test run looks as if it produced
the right results.
Now, as I can modify the actual program that loads the DLL/SO and
runs these user-defined routines, I can easily overcome the
uppercase/lowercase problem. This certainly gives hope.
Regards,
Arjen
More information about the Fortran
mailing list