Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!caip!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!cuae2!ltuxa!ttrdc!levy From: levy@ttrdc.UUCP (Daniel R. Levy) Newsgroups: net.unix-wizards Subject: Re: linking C and Fortran Message-ID: <1110@ttrdc.UUCP> Date: Sun, 3-Aug-86 16:02:56 EDT Article-I.D.: ttrdc.1110 Posted: Sun Aug 3 16:02:56 1986 Date-Received: Mon, 4-Aug-86 18:44:17 EDT References: <2668@brl-smoke.ARPA> <1103@ttrdc.UUCP> Organization: AT&T, Computer Systems Division, Skokie, IL Lines: 28 In article <1103@ttrdc.UUCP>, levy@ttrdc.UUCP (Daniel R. Levy) writes: >Close but no cigar. Fortran (at least f77 which mostly follows the ANSI >standard) doesn't grok '_' in identifiers and even if it did (a la VMS FORTRAN) >the above explanation has an error in it. The actual situation might look >like this: > > subroutine forsub(arg1, arg2,...) > .... > return > end > >main(argc,argv); >int argc; >char **argv; >{ >. >. >. Whoops!!! Omit the semicolon in the "main(argc,argv)" line. A typo. SORRY! -- ------------------------------- Disclaimer: The views contained herein are | dan levy | yvel nad | my own and are not at all those of my em- | an engihacker @ | ployer or the administrator of any computer | at&t computer systems division | upon which I may hack. | skokie, illinois | -------------------------------- Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa, go for it! allegra,ulysses,vax135}!ttrdc!levy