From: Brian Salter-Duke <b_duke () quoll ! ntu ! edu ! au>
To: tru64-unix-managers
Subject: f2c problem - summary
Date: Thu, 26 Oct 1995 03:03:19 +0000 [thread overview]
Message-ID: <96075324106756.tru64-unix-managers.marc@archive.invalid> (raw)
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@gore.afep.cornell.edu
and sheehan@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@lacebark.ntu.edu.au or b_duke@quoll.ntu.edu.au
reply other threads:[~1995-10-26 3:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox