Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site hao.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!hao!woods From: woods@hao.UUCP (Greg "Bucket" Woods) Newsgroups: net.unix,net.lang.f77 Subject: Re: C calls FORTRAN subroutine Message-ID: <1206@hao.UUCP> Date: Fri, 12-Oct-84 17:11:39 EDT Article-I.D.: hao.1206 Posted: Fri Oct 12 17:11:39 1984 Date-Received: Sat, 13-Oct-84 08:54:18 EDT References: <249@imsvax.UUCP> Organization: High Altitude Obs./NCAR, Boulder CO Lines: 32 > In the C program, I have > ---------- > #include> > main() > { > try_() > } > ---------- > > In the Fortran program, I have > ---------- > subroutine try > write (6,100) > 100 format ("subprogram") > end > ---------- > This is a weird one. I know why it doesn't work, but knowing why isn't much help. I put an "fflush(stdout)" call in the main program after the call to "try", and then ran "adb" on this program, putting a breakpoint in "write". The result of that shows that it is trying to write the string "subprogram" on file descriptor 3. How about it, compiler wizards? What the '&"#%@*! is going on? --Greg -- {ucbvax!hplabs | allegra!nbires | decvax!stcvax | harpo!seismo | ihnp4!stcvax} !hao!woods "...the bus came by, and I got on, that's when it all began..."