From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!dimacs.rutgers.edu!seismo!uunet!mcsun!cernvax!chx400!ugun2b!ugun2a!tamone From: tamone@uni2a.unige.ch Newsgroups: comp.lang.ada Subject: passing fortran objects to ada link ??? Message-ID: <1991Jan10.194348.811@uni2a.unige.ch> Date: 10 Jan 91 17:43:48 GMT Organization: University of Geneva, Switzerland List-Id: 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