Cannot find file Interpolator.h

Hi,

In the code attached when I do make I get the error

/home/geant4/ausalib/source/eloss/RangeInterpolator.cpp:5:31: fatal error: Math/Interpolator.h: No such file or directory
#include <Math/Interpolator.h>
^
compilation terminated.

I am attaching the code. The file Interpolator.h is present in the required location of Root but somehow the code is not able to access it.

Thank you in advance.

RangeInterpolator.cpp (1.9 KB)


_ROOT Version: 6.06.08
_Platform: CENTOS 7
Compiler: Not Provided


Dear mustak21,

Does it mean that it is present in the <ROOT_install_path>/include?

More general, are you using a pre-compiled binary or di you build/install by yourself?
Can you give details in both cases?

G Ganis

Hi,

The file Interpolator.h is present in the location root-6.06.08/math/mathmore/inc/Math .
I downloaded the source distribution root_v6.06.08.source.tar.gz and installed ROOT by myself using the " ./configure " method.

Even after installing ROOT by the “build method” the problem remains the same!

Check “root-config --has-mathmore” and see if you get “yes”.
If you get “no”, you need to rebuild your ROOT from scratch again (but make sure in advance that you have your operating system provided “gsl-devel” installed or that you switch the ROOT’s “builtin_gsl” on).

1 Like

Thank you so much! This solved the problem!

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