From: Massimo Casu <casu@physik.uni-freiburg.de>
Subject: fortran and C++??
Date: Fri, 20 Apr 2001 14:32:02 +0200 [thread overview]
Message-ID: <3AE02C42.60740E21@physik.uni-freiburg.de> (raw)
Hi,
need some help on compiling a C++ code with g++, with needs a fortran
routine (bessel function) jn.
This is on a alpha with compaq fortran and suse 7.0.
What i have done was
extern double* jn_(int *, double *);
for initialization
and
double mbess = *(jn_(&m,&ksi));
for calling.
Now i don't know, how to call a fortran routine via a C++ code??
The error is
undefined reference to `jn_(int *, double *)'
with means that it didn't find the library linked.
Is somebody out there who can solve the problem??
Thanx in advance,
Massimo
reply other threads:[~2001-04-20 12:32 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