Re: gfortran/g77 ld problem: undefined references




Greg Lindahl wrote:
In article <1152832740.344001.244590@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
RC <rcrump@xxxxxxxxxx> wrote:

When I try to link to the library created (libran.a) I get a whole pile
of undefined
reference errors. These follow at the bottom ofthis message.

You can't link to a library built with g77 with gfortran. Both must be
built with the same compiler. Your undefined references are to
internal routines in g77's runtime library.

Ah. I have a problem then as trying to compile libran.a with gfortran
gives
me the messages at the bottom of this one.
Ron.


$ gfortran -O3 -c *.f
In file genf.f:52

IF (.NOT. (xden.LE. (1.0E-38*xnum))) GO TO 20
1
Warning: Real constant underflows its kind at (1)
In file gennf.f:64

IF (.NOT. (xden.LE. (1.0E-38*xnum))) GO TO 20
1
Warning: Real constant underflows its kind at (1)
In file qrgnin.f:48

END

1
Internal Error at (1):
TODO: Functions with alternate entry points

.