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