Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.6.2.17 $; site uokmet.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!houxm!ihnp4!inuxc!pur-ee!uiucdcs!uokmet!root From: root@uokmet.UUCP Newsgroups: net.unix Subject: Re: Re: C calls FORTRAN subroutine Message-ID: <600004@uokmet.UUCP> Date: Mon, 22-Oct-84 12:49:00 EDT Article-I.D.: uokmet.600004 Posted: Mon Oct 22 12:49:00 1984 Date-Received: Fri, 26-Oct-84 02:59:45 EDT References: <1206@hao.UUCP> Lines: 20 Nf-ID: #R:hao:-120600:uokmet:600004:000:732 Nf-From: uokmet!root Oct 22 11:49:00 1984 /***** uokmet:net.unix / uicsl!mather / 4:31 pm Oct 14, 1984 */ >>> Calling C from FORTRAN is nice, but going the other way is a real pain, >>> especially since you have to include all of the libF77 and libI77 junk. >>> Messy messy messy. There is a nice little trick that I've discovered of recent. If you have a C main program that calls FORTRAN routines, use "MAIN__()" instead of "main()", then compile with f77! The linking is done for you. There is documentation called "A Portable Fortran 77 Compiler" (found in "UNIX Programmers' Manual" Volume 2B, at least that's its location for 2BSD) that might also be of some use. Kevin W. Thomas Univ. of Oklahoma Norman, OK 73019 UUCP: ...!ctvax!uokvax!uokmet!kwthomas