sousasag / ARES

ARES - Automatic Routine for line Equivalent widths in stellar Spectra
11 stars 3 forks source link

Compile error: 'gsl_multifit_fdfsolver' has no member named 'J' #14

Open pmaxted opened 1 year ago

pmaxted commented 1 year ago
In file included from ARES_v2.c:47:
areslib.h: In function 'fitngauss':
areslib.h:589:24: error: 'gsl_multifit_fdfsolver' has no member named 'J'
  589 |   gsl_multifit_covar (s->J, 0.0, covar);
      |                        ^~
sousasag commented 1 year ago

Hi, Please check if this point on the FAQ solves this problem:

-- FAQ -- Problems with GSL 2.0 of GSL 1.0 versions. If you find a problem with compilation with the error mentioning: In file included from ARES_v2.c:47: areslib.h: In function : areslib.h:589: error: has no member named The solution is to replace the file areslib.h by the one named areslib_gsl2.h: https://github.com/sousasag/ARES/blob/master/areslib_gsl2.h

or if you have GSL 1.3 you can replace areslib.h by areslib_gsl1.h https://github.com/sousasag/ARES/blob/master/areslib_gsl1.h