Xref: utzoo comp.lang.c:19378 comp.lang.fortran:2123 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!TAURUS.BITNET!zifrony From: zifrony@TAURUS.BITNET Newsgroups: comp.lang.c,comp.lang.fortran Subject: Re: Calling FORTRAN from C (Was: Need matrix inversion C routine). Message-ID: <1034@taurus.BITNET> Date: 15 Jun 89 17:47:46 GMT References: <2846@tank.uchicago.edu> <5785@cbnews.ATT.COM> <10087@smoke.BRL.MIL> Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: zifrony%math.tau.ac.il@CUNYVM.CUNY.EDU (Zifrony Doron) Organization: Tel-Aviv Univesity Math and CS school, Israel Lines: 23 Most environments I know, which include DG AOS/VS, VMS and UNIX have compatible compilers, meaning you can interleave objects originating from different languages to create your load module. Of course, when reading a FORTRAN routine from C, it is important to remember that FORTRAN arguments are passed by reference, thus pointers have to be passed. In case of character type, I am not sure there is a simple C equivalent, and maybe some sort of simulation through the use of "struct" is necessary. The loading of the FORTRAN library indeed poses a problem. I don't know if it is setteled in any system. -- Doron Zifrony E-mail: BITNET: zifrony@taurus.bitnet Msc. Student INTERNET: zifrony@Math.Tau.Ac.IL Dept. of CS ARPA: zifrony%taurus.bitnet@cunyvm.cuny.edu Tel Aviv Univ. UUCP: ...!uunet!mcvax!humus!taurus!zifrony Israel CSNET: zifrony%taurus.bitnet%cunyvm.cuny.edu@ csnet-relay -- Disclaimer: I DON'T represent Tel Aviv University. The opinions hereby expressed are solely my own.