Article View: comp.sys.ibm.pc
Article #41878Re: How do I call MS FORTRAN from MS C?
From: pedro cruz
Date: Wed, 07 Feb 1990 18:03
Date: Wed, 07 Feb 1990 18:03
20 lines
1266 bytes
1266 bytes
In article <7894@lindy.Stanford.EDU>, LC.YRS@forsythe.stanford.edu (Richard Stanton) writes: > If I have a .OBJ file that apparently is a compiled MS FORTRAN > subroutine, how do I link it into a MS C main program? I have tried > declaring the function name with the "fortran" keyword, but the > linker keeps wanting to look for FORTRAN.LIB, and complains about a > few doubly defined symbols. I also get a few segment fixup errors, > and the program does not run. > > What am I missing? > > Richard Stanton Hi: You are missing the fortran.lib file that comes with the fortran compiler. When the ms-dos linker ask you for the libraries to include put that library in the line plus any c libraries you need. Hope this help. Pete Cruz
Technical Details
Message-ID:
<17144@eerie.acsu.Buffalo.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!sunybcs!autarch.acsu.buffalo.edu!cruzReferences:
<7894@lindy.Stanford.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!sunybcs!autarch.acsu.buffalo.edu!cruz From: cruz@autarch.acsu.buffalo.edu (pedro cruz) Newsgroups: comp.sys.ibm.pc Subject: Re: How do I call MS FORTRAN from MS C? Message-ID: <17144@eerie.acsu.Buffalo.EDU> Date: 7 Feb 90 18:03:07 GMT References: <7894@lindy.Stanford.EDU> Sender: nobody@acsu.Buffalo.EDU Reply-To: cruz@autarch.acsu.buffalo.edu (pedro cruz) Organization: UB academic computing Lines: 20