f2c problem - summary

From: Brian Salter-Duke <b_duke_at_quoll.ntu.edu.au>
Date: Thu, 26 Oct 1995 12:21:19 +0930 (CST)

iHi folks,

I have solved the problem.

On Oct 25, 11:10am, I wrote:
> Subject: f2c on DEC/OSF1
> Hi,
>
> I am having trouble getting f2c to work correctly on the alpha 3000/800
> I manage. The problem is as follows:-
> 1. It compiles OK.
> 2. The libraries libF77.a and libI77.a compile OK and I combined
> them into libf2c.a with no apparant problems.
> 3. f2c runs and converts fortran code into c code OK, but at the
> ld stage it gives something like this:-
>
> ld:
> Unresolved:
> s_wsfe
> e_wsfe
> s_rsfe
> do_fio
> e_rsfe
> s_rsle
> do_lio
> e_rsle
> s_stop
> exit_
>

Thanks to
boris_at_gore.afep.cornell.edu
and sheehan_at_scripts.edu

The basic problem was that I was using

cc -o x -lf2c -lm x.c

or

cc -o x -lf2c -lm x.o

rather than

cc -o x x.o -lf2c -lm

This appears to be important on the alphas. I then got into confusion by
changing the CFLAGS in the makefiles and getting different unresolved
stuff. At one point last night I had it working with the separate libraries
-lF77 -lI77, but not with -lf2c. It works just fine now and no changes are
needed to the makefiles from netlib.

Little mistakes can waste a lot of time.

Cheers, Brian.
-- 
        Associate Professor Brian Salter-Duke (Brian Duke)
School of Mathematical and Physical Sciences, Northern Territory University,
          Darwin, NT 0909, Australia.  Phone 089-466702
e-mail: b_duke_at_lacebark.ntu.edu.au  or b_duke_at_quoll.ntu.edu.au
Received on Thu Oct 26 1995 - 04:01:03 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT