Yes - that does fix the issue.

Cheers,
Rob

-----Original Message----- From: Patrick Alken
Sent: Tuesday, November 03, 2015 3:21 AM
To: [email protected] ; [email protected]
Subject: Re: [Help-gsl] [gsl-2.0] undefined reference to `gsl_sf_legendre_sphPlm_array'

Yes thats a bug. Could you please locate line 138 of multifit/fdjac.c
and change it as follows:

-  status = fdjac(x, fdf, f, J);
+  status = fdjac(x, NULL, fdf, f, J);

This should fix the issue.

Patrick
________________________________________
From: [email protected]
<[email protected]> on behalf of
[email protected] <[email protected]>
Sent: Monday, November 2, 2015 1:46 AM
To: [email protected]
Subject: Re: [Help-gsl] [gsl-2.0] undefined reference to
`gsl_sf_legendre_sphPlm_array'

Aaah ... thanks Patrick.

I've now located the online manual.

Is there a recommended way of building gsl-2.0 such that the deprecated
functions are still available ?

I tried (naively) commenting out the #define of GSL_DISABLE_DEPRECATED in
config.h immediately prior to running 'make'.
But 'make' then failed when it came to compiling fdjac.c; firstly some
warnings, then finally:

fdjac.c:138:12: error: too few arguments to function 'fdjac' status =
fdjac(x, fdf, f, J);

Cheers,
Rob

-----Original Message-----
From: Patrick Alken
Sent: Monday, November 02, 2015 2:06 AM
To: [email protected]
Subject: Re: [Help-gsl] [gsl-2.0] undefined reference to
`gsl_sf_legendre_sphPlm_array'

The answer is in the manual:

-----
These functions are now deprecated and will be removed in a future
release; see gsl_sf_legendre_array and gsl_sf_legendre_deriv_array.
-----

On 11/01/2015 01:41 AM, [email protected] wrote:
Hi,

I see that  gsl_sf_legendre_sphPlm_array() has been deprecated and
references to it are no longer resolved by the gsl library (if
GSL_DISABLE_DEPRECATED is defined).

With what should gsl_sf_legendre_sphPlm_array() be replaced ?


Reply via email to