* f2c problem - summary
@ 1995-10-26 3:03 Brian Salter-Duke
0 siblings, 0 replies; only message in thread
From: Brian Salter-Duke @ 1995-10-26 3:03 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-10-26 3:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-10-26 3:03 f2c problem - summary Brian Salter-Duke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox