f2c with mpif90 using gfortran44
Steve Kargl
sgk@troutmask.apl.washington.edu
Mon Oct 3 21:02:00 GMT 2011
On Mon, Oct 03, 2011 at 01:55:00PM -0700, Jacob Anderson wrote:
>
> > mpif90 -fcray-pointer -std=legacy -ff2c
>
> foo.a(ttyint.o): In function `ttyint_':
> ttyint.F:(.text+0x1d): undefined reference to `signal_'
> foo.a(getexm.o): In function `getexm_':
> getexm.F:(.text+0x71): undefined reference to `iargc_'
>
> I do not have an libf2c.a for linking. Any help?
>
1) Drop the -ff2c. It should not be needed.
2) Edit your source code and remove 'external iargc'
and 'externa; signal'.
3) I have no idea waht ttyint and getexm are.
--
Steve
More information about the Fortran
mailing list