Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!dali.cs.montana.edu!milton!uw-beaver!ubc-cs!unixg.ubc.ca!chilko.ucs.ubc.ca!burton From: burton@chilko.ucs.ubc.ca (Steve Cumming, net.leftist) Newsgroups: comp.lang.fortran Subject: Getting at COMMON things from C Message-ID: <1991Jan8.025638.16812@unixg.ubc.ca> Date: 8 Jan 91 02:56:38 GMT Sender: news@unixg.ubc.ca (Usenet News Account) Distribution: na Organization: University of British Columbia, Vancouver, B.C., Canada Lines: 20 I have some FORTRAN modules that I am trying to connect to a C driver. How can I declare the object FOO in COMMON/BAR/ so that things link properly? Is there some ld(1) trickery I should know about? Judging from the output of f2c and the internals of gdb, something like a structure declaration should do ...? I am presently using SUN F77 and C compilers, but this will also have to work with Turbo C and some yet to be determined PCish FORTRAN compiler. Suggestions appreciated. -- #include "../h/disclaimer.h" /* I am not really Phil Burton, btw. */ burton@unixg.ubc.ca ... and if dinosaurs "became" birds Steve Cumming, a.k.a. what will we become? - Anselm Hollow.