From: Alfonso Alba Garcia <alba@iri.tudelft.nl>
To: help-gcc@gnu.org
Subject: fortran+c
Date: Fri, 31 Dec 1999 22:24:00 -0000 [thread overview]
Message-ID: <384BDFE0.79A3BE96@iri.tudelft.nl> (raw)
Message-ID: <19991231222400.dYleK6UvcbEoq5tAI0W7fbeOdin8giO3JTIL-ujBmGw@z> (raw)
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.
next reply other threads:[~1999-12-31 22:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-06 8:14 Alfonso Alba Garcia [this message]
1999-12-06 8:14 ` fortran+c. I forgot one thing: Alfonso Alba Garcia
1999-12-31 22:24 ` Alfonso Alba Garcia
1999-12-06 22:44 ` fortran+c Tim Prince
1999-12-06 23:14 ` fortran+c Tim Prince
1999-12-31 22:24 ` fortran+c Tim Prince
1999-12-31 22:24 ` fortran+c Tim Prince
1999-12-31 22:24 ` fortran+c Alfonso Alba Garcia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=384BDFE0.79A3BE96@iri.tudelft.nl \
--to=alba@iri.tudelft.nl \
--cc=help-gcc@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).