Errors in compiling a macro

Hi everyone, I am new to Root. I was compiling a macro available in tutorials named Bessel.C, but it is showing some errors.

Info in TUnixSystem::ACLiC: creating shared library /home/kamal/./Bessel_C.so
In file included from /home/kamal/Bessel_C_ACLiC_dict.h:34:0,
from /home/kamal/Bessel_C_ACLiC_dict.cxx:17:
/home/kamal/./Bessel.C: In function ‘void Bessel()’:
/home/kamal/./Bessel.C:36:20: error: ‘libMathMore’ was not declared in this scope
R__LOAD_LIBRARY(libMathMore);
^
/home/kamal/./Bessel.C:36:31: error: ‘R__LOAD_LIBRARY’ was not declared in this scope
R__LOAD_LIBRARY(libMathMore);
^
g++: error: /home/kamal/Bessel_C_ACLiC_dict.o: No such file or directory
Error in : Compilation failed!

I get similar errors on TGraphErrors and Tgraph also while compiling other codes. Could you please help me out.

It seems, that in your root version the MathMore library is missing. How did you install your root? Did you compile it with -Dmathmore:bool=ON?

Waldi,
I din’t install it using -Dmathmore:bool=ON command. I simply downloaded the source and ran
./configure --all
cmake
make -j 4
source ./bin/thisroot.sh commands.

You can just do

cmake -Dmathmore:bool=ON

hope it helps :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.