From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075324106756.tru64-unix-managers.marc@archive.invalid> From: Brian Salter-Duke Date: Thu, 26 Oct 1995 03:03:19 +0000 To: tru64-unix-managers Subject: f2c problem - summary X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075324106756 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