[net.lang.f77] linking c and f77 programs

sid@linus.UUCP (Sid Stuart) (04/04/84)

One paper that talks about mixing c and f77 is in Vol 2B of the Bell
manuals released with 4.1 bsd. It is paper number 21 Section number 4
talks about the c-f77 interface. I think I have seen another reference on this
but I have forgotten where. It should be another of the Unix papers. If I
remember correctly, I once helped a user call some fortran routines from
pascal. I think it involved archiving the fortran objects and then editing
the resulting library to zap an offending "_" in the name. When the
archive is edited, you also have to insert a null somewhere in the file
to keep a character count correct. And of course you have to get the
parameter passing right.



						sid@linus.UUCP

gwyn@brl-vgr.ARPA (Doug Gwyn ) (04/05/84)

The UNIX System V Release 2 documentation also has a section that
explains how to link F77 and C together.

joels@tektronix.UUCP (Joel Swank) (04/06/84)

    Has anyone used c to call f77 subroutines or f77 to call c functions?
Are any special type declarations needed? Can int, float and char types
be passed beetween? Are any special ld options needed?
   Any information will be appreciated.

   Joel Swank
   Software Center
   Tools Group
   Tektronix, Beaverton, OR