From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,f96ecaf7bcd1a95b,start X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-04-20 05:46:03 PST From: Massimo Casu Newsgroups: comp.os.linux.alpha Subject: fortran and C++?? Date: Fri, 20 Apr 2001 14:32:02 +0200 Organization: Rechenzentrum der Universitaet Freiburg, Germany Message-ID: <3AE02C42.60740E21@physik.uni-freiburg.de> NNTP-Posting-Host: tqd12.physik.uni-freiburg.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.18-SMP i686) X-Accept-Language: en Path: supernews.google.com!newsfeed.google.com!sn-xit-03!supernews.com!freenix!fr.clara.net!heighliner.fr.clara.net!newsfeed.hanau.net!newscore.gigabell.net!blackbush.xlink.net!rz.uni-karlsruhe.de!news.uni-ulm.de!news.belwue.de!news.uni-freiburg.de!not-for-mail Xref: supernews.google.com comp.os.linux.alpha:2767 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