Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!sdcsvax!sdcc6!calmasd!jjo From: jjo@calmasd.UUCP Newsgroups: comp.unix.questions Subject: Ultrix FORTRAN <-> C calls Message-ID: <2274@calmasd.GE.COM> Date: Fri, 5-Jun-87 17:50:24 EDT Article-I.D.: calmasd.2274 Posted: Fri Jun 5 17:50:24 1987 Date-Received: Sun, 7-Jun-87 10:34:41 EDT Reply-To: jjo@calmasd.UUCP (Jay Olson) Distribution: world Organization: Calma Company, San Diego Lines: 16 Can anyone tell me how to call C functions from FORTRAN and vice-versa using VAX FORTRAN/Ultrix (i.e. fort, as opposed to f77) under Ultrix 1.2. The documentation I have doesn't seem to include any information about this. The problem is that FORTRAN entry points and external references are all uppercase in the object file, while C entry points and external references are all lowercase (with a preceding underscore), so you end up with numerous unresolved references at link time (using lk, rather than ld). Is it possible that Ultrix 2.0 is required to make interlanguage calls work? - Jay Olson ...sdcsvax!calmasd!jjo jjo@calmasd.GE.COM