Hi all. I am trying to get some Fortran code to compile on
our Pentium Linux box (Slackware/kernel: 2.0.34).
I am using fort77 version 1.13 and gcc version 2.7.2.1.
There are a few intrinsic functions in the code that are causing
problems at link time. Specifically, iand, zext and ran are causing
undefined reference messages. Not being a programmer, I just figured
that these functions would be converted to the appropriate C functions
by fort77. Maybe not? Maybe these functions should be named
something else?
graphics.o: In function `grrast_':
graphics.o(.text+0x654d): undefined reference to `iand_'
graphics.o(.text+0x7406): undefined reference to `iand_'
surfmap.o: In function `srfsan_':
surfmap.o(.text+0x2368): undefined reference to `iand_'
surfmap.o(.text+0x2452): undefined reference to `iand_'
surfmap.o(.text+0x2474): undefined reference to `iand_'
surfmap.o(.text+0x2496): more undefined references to `iand_' follow
mapread.o: In function `mapdn6_':
mapread.o(.text+0x2950): undefined reference to `zext_'
mapread.o: In function `mapbrx_':
mapread.o(.text+0x3370): undefined reference to `zext_'
../forlib/forlib.a(system.o): In function `syrand_':
system.o(.text+0xa72): undefined reference to `ran_'
system.o(.text+0xa92): undefined reference to `ran_'
system.o(.text+0xaa7): undefined reference to `ran_'
system.o(.text+0xafe): undefined reference to `ran_'
Can someone please point out some possible mistakes I am making?
Maybe someone could even suggest an alternative to the fort77/gcc
combo I used? I just want to compile the thing and be done with
it. :-)
Any advice is appreciated.
Thanks very much.
-- Home Page - http://galactose.stanford.edu/~anandk
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
Anand Kolatkar Stanford University
Lab Phone: (650) 725-4625 or -7866 Fairchild Building D-143
FAX: (650) 723-8464 Stanford, CA. 94305-5126
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><