f77 unresolved references
arpp
arpp at gpu.utcs.utoronto.ca
Sun Jan 14 05:14:12 AEST 1990
The following is a piece of code that we are trying to compile in A/UX.
I am running A/UX 1.1.1 on a Macintosh IIx with 8Mb of RAM.
character*40 cart
j=2
i=5
write(cart,*)i,j
write(6,200)cart
read(cart,*)i,j
write(6,100)i,j
100 format('i=',i5,' j=',i5)
200 format(lx,a)
stop
end
Trying to compile the code produces the following messages:
barney.root 29 # f77 test.f
test.f:
MAIN:
undefined first referenced
symbol in file
s_wsli test.o
e_wsli test.o
s_rsli test.o
e_rsli test.o
ld fatal: Symbol referencing errors. No output written to a.out
Creating an object file via 'f77 -c test.f' and then manually linking
the code produces the following messages:
barney.root 39 # ld -lI77 -lF77 test.o
undefined first referenced
symbol in file
s_wsli test.o
do_lio test.o
e_wsli test.o
s_wsfe test.o
do_fio test.o
e_wsfe test.o
s_rsli test.o
e_rsli test.o
s_stop test.o
ld fatal: Symbol referencing errors. No output written to a.out
Can anyone help me with locating the necessary libraries for properly linking
the code? What is the 'startup' file that chapter 10-1 talks about in the
Programming Languages and Tools, Vol 1 manual?
More information about the Comp.unix.aux
mailing list