Xref: utzoo comp.lang.c:39335 comp.lang.fortran:5396 comp.unix.questions:31399 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ncar!gatech!udel!haven.umd.edu!mimsy!dftsrv!amarna.gsfc.nasa.gov!packer From: packer@amarna.gsfc.nasa.gov (Charles Packer) Newsgroups: comp.lang.c,comp.lang.fortran,comp.unix.questions Subject: Calling C from FORTRAN under Unix Message-ID: <5343@dftsrv.gsfc.nasa.gov> Date: 16 May 91 21:19:12 GMT Sender: news@dftsrv.gsfc.nasa.gov Reply-To: packer@amarna.gsfc.nasa.gov Organization: Dept. of Independence Lines: 7 News-Software: VAX/VMS VNEWS 1.3-4 On a Unix system I want to call a C routine from a FORTRAN program. The linker says the C routine is undefined. On a VMS system, the problem doesn't happen. The reason why there is a problem on a Unix system has something to do with the name of the C subroutine acquiring a preceding underscore ("_") during compilation, or some such nonsense. To anyone familiar with this problem: what is the way around it?