Re: Re: ROOT Math libraries

From: Edmond Offermann <edmondoffermann_at_yahoo.com>
Date: Sat, 11 Mar 2006 14:47:34 -0800 (PST)


Hi Dipo,

I observe that several directories have been added to $ROOTSYS/include like
GenVector, MathCore and MathMore and maybe more will follow ....

Therefore, I would use "-I$ROOTSYS/include" and specify include files as #include "Math/SpecFuncMathMore.h" . Otherwise your compile option list might become very long .

Eddy

> use
> -I$ROOTSYS/include/Math
>
> and #include "SpecFuncMathMore.h"
>
> Rene Brun
>
>
> On Fri, 10 Mar 2006, Oladipo Fadiran
> wrote:
>
> > Hi,
> > I have no problem running it from the ROOT prompt. I
> > load the libMathMore library as you said using
> > gSystem. What I need to know is how to include it in a
> > stand alone class. What is the gSystem->Load
> > equivalent of -I/include when compiling.
> > Thanks.
> > Dipo.
> >
> > --- Rene Brun <Rene.Brun_at_cern.ch> wrote:
> >
> >> 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);
> >>
> >> Rene
> >>
> >> 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
> >>> http://mail.yahoo.com
> >>>
> >>
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>
>
Received on Sat Mar 11 2006 - 23:52:26 MET

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