home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 9934 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  884 b 

  1. Path: sparky!uunet!ogicse!hp-cv!hp-pcd!hpfcso!mjs
  2. From: mjs@hpfcso.FC.HP.COM (Marc Sabatella)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: Need help with Fortran and C
  5. Message-ID: <7371280@hpfcso.FC.HP.COM>
  6. Date: 1 Sep 92 17:59:09 GMT
  7. Article-I.D.: hpfcso.7371280
  8. References: <tghe337.715361025@cdc835>
  9. Organization: Hewlett-Packard, Fort Collins, CO, USA
  10. Lines: 14
  11.  
  12. In comp.sys.hp, tghe337@cdc835.cdc.polimi.it () writes:
  13.  
  14. > I'm tryng to call Fortran routines from a C program.
  15.  
  16. The easiest way to do this is to make sure the main routine is in Fortran, and
  17. use f77(1) rather than cc(1) to link the program - that way, all necessary
  18. initialization for Fortran I/O will be performed, and the right libraries will
  19. be linked in.
  20.  
  21. --------------
  22. Marc Sabatella (marc@hpmonk.fc.hp.com)
  23. Disclaimers:
  24.     2 + 2 = 3, for suitably small values of 2
  25.     Bill (H.) and Dave (P.) may not always agree with me
  26.