Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site uwmacc.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!uwvax!uwmacc!jwp From: jwp@uwmacc.UUCP (Jeffrey W Percival) Newsgroups: net.unix Subject: Calling f77 routines from C: HELP! Message-ID: <1930@uwmacc.UUCP> Date: Fri, 24-Jan-86 18:55:22 EST Article-I.D.: uwmacc.1930 Posted: Fri Jan 24 18:55:22 1986 Date-Received: Sun, 26-Jan-86 04:48:15 EST Distribution: net Organization: UWisconsin-Madison Academic Comp Center Lines: 20 This applies to 4.2BSD and Ultrix-32M v1.1: I am trying to call a f77 subroutine from a C program, and I find that the supposedly "preconnected" i/o units 5 and 6 are not connected. That is, when I do a simple print in the Fortran subroutine, like: print *, 'hi!' I get an entry in a file called fort.6. What makes this especially unfortunate, is that this works fine in 2.8BSD, and we have found that the C/f77 programs that we wrote under 2.8BSD are failing to run as expected under Ultrix (for the reason just described). Is there a way to preserve the "preconnections" advertised in the f77 documentation? I would very much appreciate any comments you can make on this. Thanks! -- Jeff Percival ...!uwvax!uwmacc!jwp