From: paolowalter@my-dejanews.com
Subject: Re: Calling Fortran 90 subroutine from C program
Date: 1999/01/08 [thread overview]
Message-ID: <7762s6$vmg$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 775b1h$jsc$1@sparcserver.lrz-muenchen.de
In article <775b1h$jsc$1@sparcserver.lrz-muenchen.de>,
Manfred Weiser <mweiser@physik.tu-muenchen.de> wrote:
> Hi,
>
> you should give the option -lfor (or -lf2c for Linux) in order to
> link Fortran routines correctly.
Good suggestion, but not always literaly true. The point is that if you do
not link with the fortran linker (probably f77 or f90 for you) you do not get
automatic acceess to the Fortran system library and you need to link them by
hand. On my system they are libf.a, hence you need -lf Otherwise you can link
with the Fortran linker and link by hand the c routines -lc.
Ciao Paolo
>
> Bye,
> Manfred
> ------------------------------------------------------------------------------
> Manfred Weiser Physik-Department der TU Muenchen, Institut T30
> Telephon: ++49 (89) 289-14608 (Fax: -12296)
> E-Mail: mweiser@physik.tu-muenchen.de
>
>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
prev parent reply other threads:[~1999-01-08 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-08 5:00 Calling Fortran 90 subroutine from C program Yon Han CHONG
1999-01-08 5:00 ` Manfred Weiser
1999-01-08 5:00 ` paolowalter [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox