On Tue, 13 Jun 2006, Stephen Rankin wrote:
> lf95 -o sgs_uk sgs_uk.f -L/star/lib `sgs_link` -L/usr/lib -lg2c
>
> However, four routines are still unresolved. They are:
>
> /usr/lib/libg2c.a(due.o)(.text+0x3c5): In function `e_rdue':
> : undefined reference to `__moddi3'
> /usr/lib/libg2c.a(inquire.o)(.text+0x287): In function `f_inqu':
> : undefined reference to `__divdi3'
> /usr/lib/libg2c.a(fmtlib.o)(.text+0x4f): In function `f__icvt':
> : undefined reference to `__umoddi3'
> /usr/lib/libg2c.a(fmtlib.o)(.text+0x74): In function `f__icvt':
> : undefined reference to `__udivdi3'
>
> Do you know if these routines are in another library somewhere or how I
> can resolved these references?
Steve,
pretty sure those symbols are in the C library, so it could be all that's
needed is:
lf95 -o sgs_uk sgs_uk.f -L/star/lib `sgs_link` -L/usr/lib -lg2c -lc
but I don't have Lahey to try that out.
Cheers,
Peter.
|