[comp.lang.ada] passing fortran objects to ada link ???

tamone@uni2a.unige.ch (01/11/91)

I am desperatly trying to link a little f77 fortran object file with an
Ada program. The program is composed of 10 or so different packages.
I am working under UNIX on a sun 3/80 workstation. I tried Telesoft 1.4A and
Verdix 5.5 compiler but , in both case could not link properly. 

 What happened was that when the ada linker passed the objects to the UNIX
linker, an error occured. In the Telesoft case, the error was:
		Undefined: f68881 used   (approximately reproduced text)
even though the hardware floating point was set for ada (my machine has got a
co-processor) and the f77 flag for floating point was also used when
compiling the little fortran code.

 I have tried to turn around the libraries provided with the link command in
just about every sequence possible, without succes.

With the Verdix compiler I have this linker error:
		ld: symbol __DYNAMIC lookup failed

my telesoft link command look like this (after many tries...):
       ald -v  -p ' \
           /un2sunb/ub2/eao/ada/libideal.a -lX11\
           opmet.o\
           libfgks.a libdgks.a libcgks.a \
           libF77.a libI77.a libU77.a\
           -lsuntool -lsunwindow -lpixrect \
           -L/usr/lib/f68881 \
           -lm \
           -L/usr/lib \
           -lc \
           ' -o Plot Plot
where opmet.o is my little fortran object.

 I would greatly appreciate any suggestions in showing me what I did WRONG.
 Thank you.

Francois