Calling C from FORTRAN under Unix

Bruce Oneel oneel at heawk1.gsfc.nasa.gov
Fri May 17 23:36:52 AEST 1991


As an example, on sun os 4.1 with f77 1.3.1 (Henry said it was system
dependent) you have to say 

	EXTERNAL ABC,XYZ !$PRAGMA C(ABC,XYZ)

or add an underscore to the c routine name in c.  Needless to say, 30
words doesn't make up for 40 pages of sun manuals.  50 words would,
but not 30 :-)

bruce
--
Bruce O'Neel              oneel at heasfs.gsfc.nasa.gov
NASA/GSFC/STX/Code 664



More information about the Comp.lang.c mailing list