From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alfonso Alba Garcia To: help-gcc@gnu.org Subject: fortran+c Date: Fri, 31 Dec 1999 22:24:00 -0000 Message-ID: <384BDFE0.79A3BE96@iri.tudelft.nl> X-SW-Source: 1999-12n/msg00081.html Message-ID: <19991231222400.dYleK6UvcbEoq5tAI0W7fbeOdin8giO3JTIL-ujBmGw@z> Hello everybody, I would like to get information about how to compile fortran subroutines in C programs an vice versa. I have managed to do it with small programs in both directions. My problem is with common blocks, I don't know how to access them from a C function. For example, if I have a fortran MAIN program: PROGRAM TRY common/block/A,B . . . END How can I have access to A and B from a C subroutine to manipulate them? Thanks in advance.