fortran+c

Alfonso Alba Garcia alba@iri.tudelft.nl
Mon Dec 6 08:14:00 GMT 1999


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.


More information about the Gcc-help mailing list