Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!uw-june!uw-entropy!mica!charlie From: charlie@mica.stat.washington.edu (Charlie Geyer) Newsgroups: comp.lang.c,comp.lang.fortran Subject: Re: Calling FORTRAN from C (Was: Need matrix inversion C routine). Message-ID: <1415@uw-entropy.ms.washington.edu> Date: 5 May 89 21:45:57 GMT References: <2846@tank.uchicago.edu> <5785@cbnews.ATT.COM> <10087@smoke.BRL.MIL> <1544@auspex.auspex.com> <1278@l.cc.purdue.edu> <1557@auspex.auspex.com> Sender: news@uw-entropy.ms.washington.edu Reply-To: charlie@mica.stat.washington.edu (Charlie Geyer) Organization: UW Statistics, Seattle Lines: 14 Summary: Expires: Sender: Followup-To: Xref: utzoo comp.lang.c:18427 comp.lang.fortran:2015 Most of the discussion about this has gotten very far away from what I see as the real problem (perhaps mistakenly). A lot of comments have been to the effect that there's no portable way to make it so that *any* Fortran, C, or Lisp (!) program can be called from any other. I just want an answer to a much simpler problem. How to write an intellegent C program (no strings or structures in arguments, no call by value, etc.) that calls a Fortran subroutine or is called by one. I know there is no portable answer to this now. But shouldn't there be? This is often essential if one is to avoid reinventing the wheel at the cost of years of work.