_ROOT Version:ROOT 6.14/04
_Platform: Ubuntu Kylin 14.04
Compiler: Not Provided
Hi all , I’m trying to run The GNU Scientific Library ( GSL ) on root , so I updated my ROOT from 5.34/14 to 6.14//04 using cmake. I also made builtin_gsl:BOOL=ON by editing CMakeCache.txt.
Here is my test.c file (to check if GSL works)
#include “gsl/gsl_sf_bessel.h”
void test()
{
double x=5.0;
double y=gsl_sf_bessel_J0(x);
printf(“J0(%.3f)=%.3f\n”,x,y);
return 0;
}
When I was running the test.c on ROOT 5.34/14 which is not linked against shared libries fot GSL , I found the following error :
Error: Missing one of ’
/’ expected at or after line 29.
Error: Unexpected end of file (G__fgetstream():2) /usr/include/gsl/gsl_mode.h:89:
*** Interpreter error recovered ***
Then I ran test.c on ROOT 6.14//04 (with GSL builtin) and a new error occured as follows:
root [0]
Processing qu.c…
IncrementalExecutor::executeFunction: symbol ‘gsl_sf_bessel_J0’ unresolved while linking [cling interface function]!
My question is whether it is due to the link between ROOT and GSL , or it concerns other factors , because it works with double y = 5.0; but failed to work with y=gsl_sf_bessel_J0(x).
Plus , I can see GSL folder in …/root-6.14/GSL-prefix/src/GSL .