Problem linking Mathmore to use ROOT::Math::cyl_bessel_j

Hi,

I am still trying to get the hang of ROOT. In the meantime, I am using a
g++ compiler to link my piece of code with the ROOT libraries. At the
moment, I am not able to link to the Mathmore library. The compiler
output looks like:

>> make GeomFact
g++ -O  GeomFact.o -L/usr/local/Linux/products/root/v5.14_sl4/root/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -pthread -lm -ldl -rdynamic  -lMathMore  -lMathCore -o GeomFact
/usr/local/Linux/products/root/v5.14_sl4/root/lib/libMathMore.so: undefined reference to `gsl_ran_gaussian_ziggurat'
/usr/local/Linux/products/root/v5.14_sl4/root/lib/libMathMore.so: undefined reference to `gsl_cdf_beta_Qinv'
/usr/local/Linux/products/root/v5.14_sl4/root/lib/libMathMore.so: undefined reference to `gsl_cdf_fdist_Pinv'
/usr/local/Linux/products/root/v5.14_sl4/root/lib/libMathMore.so: undefined reference to `gsl_cdf_poisson_Q'
/usr/local/Linux/products/root/v5.14_sl4/root/lib/libMathMore.so: undefined reference to `gsl_cdf_poisson_P'
/usr/local/Linux/products/root/v5.14_sl4/root/lib/libMathMore.so: undefined reference to `gsl_cdf_binomial_Q'
/usr/local/Linux/products/root/v5.14_sl4/root/lib/libMathMore.so: undefined reference to `gsl_cdf_fdist_Qinv'
/usr/local/Linux/products/root/v5.14_sl4/root/lib/libMathMore.so: undefined reference to `gsl_cdf_binomial_P'
/usr/local/Linux/products/root/v5.14_sl4/root/lib/libMathMore.so: undefined reference to `gsl_cdf_beta_Pinv'
collect2: ld returned 1 exit status
make: *** [GeomFact] Error 1

Is there something I need to do about including GSL? And, assuming that I can
fix this problem, should it be fairly straightforward to refer to the ROOT::Math::cyl_bessel_j function in my code?

Thanks,
Penny
:open_mouth:

Hi,

libMathMore (which you added you to link line) requires the gsl library so you will need to something like -Lwhere_my_gsl_is -lgsl.

For cyl_bessel_j, you should just need to include the header file: Math/SpecFuncMathMore.h

Cheers,
Philippe[/code]