Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!hub.ucsb.edu!ucsbuxa!3003jalp From: 3003jalp@ucsbuxa.ucsb.edu (Applied Magnetics) Newsgroups: comp.unix.aix Subject: Re: C-Fortran cocktail ('6000) Message-ID: <6540@hub.ucsb.edu> Date: 10 Oct 90 21:38:25 GMT References: <101090.095618.heise1@ibm.com> Sender: news@hub.ucsb.edu Lines: 14 This was partly a case of RTFM on my part. I eventually found multiple discussions of the interlanguage conventions in the *user's guides* of C, Fortran and Pascal. I had looked only in the reference manuals. Things *not* mentioned are 1) common blocks; 2) interference between C and Fortran I/O. I'll try the keyword searches suggested by Russ Heise. Looking at object files with nm(1), I had figured out how to access labeled Fortran commons from C. The blank common generates a symbol `#BLNK_COM', which is inaccessible from C. I can't use a labeled common because many modules don't know its size at compile time. Instead, I changed the Fortran to pass an extra pointer when it calls C. --P. Asselin