linking C and Fortran

Daniel R. Levy levy at ttrdc.UUCP
Mon Aug 4 06:02:56 AEST 1986


In article <1103 at ttrdc.UUCP>, levy at 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



More information about the Comp.unix.wizards mailing list