Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* fortran and C++??
@ 2001-04-20 12:32 Massimo Casu
  0 siblings, 0 replies; only message in thread
From: Massimo Casu @ 2001-04-20 12:32 UTC (permalink / 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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-20 12:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-20 12:32 fortran and C++?? Massimo Casu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox