On Sun, May 1, 2011 at 14:36, Patrick Dupre <patrick.du...@york.ac.uk>wrote:

>
> Hello,
>
> Is perl able to load a fortran subroutine ?
>
> I have no problem to make a c code callable by gcc (xs)
> I can call a fortran routine from a c program.
> But perl fails to load a so library linked with a piece of fortran.
>
> The error is:
>  cannot restore segment prot after reloc: Permission denied at
> /usr/lib/perl5/DynaLoader.pm line 200.
>
>
> Is there any solution ?
> Linker options ?
>
>
I don't know if this supports Fortran, but the "Inline" module from CPAN
works great with C and with Tcl.  Maybe it work with Fortran :out of the
box"; maybe it can work with some "tweaking".

HTH,
Ken Wolcott

Reply via email to