From: Richard Holmes <holmes@novak.lanl.gov>
Subject: help with fortran problem
Date: Thu, 8 May 1997 01:46:30 -0600 [thread overview]
Message-ID: <199705080746.BAA26040@novak.lanl.gov> (raw)
Hello all,
I have a Fortran routine that I link to my C code. I've compiled it
and run it successfully on Linux/Intel using gcc and g77 as well
as on a Sun using their C and Fortran compilers. On my Alpha machine
with gcc and f2c, though, it doesn't work.
The problem is in the Fortran routine as converted by f2c. I can't post
the whole thing, but the offending line is
epsmch = dpmeps_();
where epsmch is defined to be a doublereal.
For testing purposes, I've set dpmeps_() to be simply
doublereal dpmeps_()
{
return 1.0;
}
where the prototype created by f2c is
extern doublereal dpmeps_();
and is located within the function that calls it.
For some reason epsmch is always set to 0. Any idea why this is happening?
Rich
---------------------------------------
Richard Holmes
Los Alamos National Laboratory
Group XTA
MS B220
Los Alamos, NM 87545
(505) 667-3598
holmes@lanl.gov
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
reply other threads:[~1997-05-08 7:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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