Error: Can’t call Interpolator::Interpolator(E,R) in current scope FILE:test.cc LINE:11
Possible candidates are…
Error: class,struct,union or type Interpolator not defined FILE:test.cc LINE:11
Most likely you forgot to build the optional plug-in MathMore (add --enable-mathmore to your configure line) (i.e. to you have a $ROOTSYS/lib/libMathMore.so ? )
If everything is done right (including running gmake map or gmake install after build the plugin) the #include line is not needed.
I tried the example in root 5.10/00 on Mac OS X 10.4 installed with Fink. Root is built with --enable-mathmore and the library libMathMore exists (as does the map file).
However, cint behaves strange in my eyes:
root [3] ROOT::Math::Integrat
Integrator
Integration
root [3] ROOT::Math::Integrator
Error: Symbol Integrator is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
root [4]
Thus the CINT knows about the Integrator in the tab completion, but not once called.
The problem is that you have not build the cintdlls
(or at least a dictionary for vector).
Do gmake cintdlls
In addition the error message is not very clear (but
if CINT was to let you pass the interpreted vector to
the compile code, you would get a crash).