Newsgroups: comp.os.parix
From: laemmer@automatix.iib.bauwesen.th-darmstadt.de (Lutz Laemmer)
Subject: Re: C calls Fortran
Organization: IIB-TH Darmstadt
Date: 13 May 1996 07:10:57 GMT
Message-ID: <4n6na2$o9u@rs18.hrz.th-darmstadt.de>

Motorola F77 uses lower case symbol names 
without underscores
(different from Sun compiler-system).

Example 
(to compile for the Sun add -DNEED_USCORE
to the CFLAGS):

----main.c----
#ifdef NEED_USCORE
#define f77_sub f77_sub_
#endif

main(int argc, char **argv){
f77_sub(&argc);
}
--------------


----sub.f-----
	subroutine f77_sub(iarg)
	integer iarg
	end
--------------


