Peter,
Thanks. I'll pass this on.
David
On Thu, 13 Oct 2005, Peter W. Draper wrote:
> On Thu, 13 Oct 2005, David Berry wrote:
>
> > I've got a local user (Anne Samsom) who is trying to use gfortran to
> > link her f77 program with -L/star/lib `pgp_link` and getting loads of
> > errors about undefined references to s_cat, s_copy, i_indx, etc. Do I
> > just tell here she can't use gfortran to link against libraries compiled
> > with g77, or is there some simple fix which will allow her to make
> > progress?
>
> David,
>
> Al was trying something similar on OS X and could not get that to work,
> but I reckon something like:
>
> gfortran -fno-second-underscore program.f -L/star/lib `pgp_link` \
> -L/usr/lib/gcc/x86_64-redhat-linux/3.4.3/32/ -lg2c
>
> will work under Linux. Obviously she'll need to track down the real
> location of libg2c.so and use that instead of my gobblygook (it might just
> be /usr/lib). Of course unless she's writing Fortran95 she'd be better off
> using the compatibility g77 command (which she definitely needs!).
>
> Cheers,
>
> Peter.
>
|