Re: ROOT Math libraries

From: Rene Brun <>
Date: Fri, 10 Mar 2006 20:58:49 +0100 (MET)

You must explicitly link libMathMore or from the ROOT prompt do

   root > gSystem->Load("libMathMore");
   root > double r = ROOT::Math::conf_hyperg(1,1,1);


On Fri, 10 Mar 2006,
Oladipo Fadiran wrote:

> Hi,
> I have a problem using some of the libraries included
> in ROOT.
> I am trying to compile some classes that are loaded in
> ROOT sessions. These classes include Math libraries
> that come with ROOT. For example, I have suceeded in
> compiling a class that contains the following line:
> TMath::Gamma(x);
> simply by compiling with the include option:
> -I$ROOTSYS/include
> I am however having problems doing the same thing with
> a class that contains the following for example:
> ROOT::Math::conf_hyperg(x,y,z);
> I get the error:
> "no class template named 'Math' in 'ROOT' "
> Why is it that I can execute the last statement within
> a Root session but not include it in a class?
> Why does the first example using TMath work but not
> the second that uses ROOT::Math?
> Does it have something to do with the way Mathcore and
> MathMore are included in ROOT?
> The questions may not be in a logical order, or they
> may basically be asking the same thing, but I hope
> they give the gist of what I need.
> Nick suggested that the complete libMathMore be
> included in the ROOT binary like Pythia is for
> example, will this solve the problem?, and if it will,
> what does it take to get this done?
> Thanks for the help.
> Dipo.
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
Received on Fri Mar 10 2006 - 20:58:59 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:57 MET