Re: [ROOT] multiple precision library in ROOT

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Jun 19 2002 - 15:35:41 MEST


Hi Carsten,

When your include files contain macros, and in particular nested macro
definitions, you must run with the "p" option of rootcint.
eg
rootcint -f mydict.cxx -c -p -I$ROOTSYS/include myclass.h LinkDef.h

You can also use ACLIC (where -p is the default)
root > .L myclass.cxx++

We do not have classes for extended arithmetic in ROOT (you are the first
one mentionning it).
If you succeed in adapting to Root an interesting class library, post it
to roottalk.

Rene Brun

On Wed, 19 Jun 2002 Carsten.Brandau@strz.uni-giessen.de wrote:

> Hi Rooters,
> 
> I like to do some calculations with higher floating precision than
> "double". This part will be compiled as shared library and loaded in
> rootcint. I tried to use libgmp, however I cannot compile my shared 
> library, the error is:
> Generating dictonary TFuncDict...
> Limitation: Can not handle macro --gmp_const const Use +P or -p 
> option 
> FILE: /usr/include/gmp.h LINE:38
> .....
> 
> and a lot of following errors.
> By the way I'm not a very experinced programmer....
> 
> Can anybody help me out there ?
> 
> Is there another way to do multiple precision float arithmetics with ROOT
> (ROOTCINT) ?
> 
> May be one could include some "native" ROOT support for multiple
> precision ?
> 
> Thanks a lot in advance 
> 
> Carsten
> 
> /**************************************/
> And everybody knows that the 
> moon is made out of cheese
>                         Wallace
> /**************************************/
> 
> Dr. rer. nat.
> Carsten Brandau
> Institut fuer Kernphysik
> Strahlenzentrum der Justus-Liebig-Universitaet
> Leihgesterner Weg 217
> 35392 Giessen
> 
> 
> Carsten.Brandau@strz.uni-giessen.de
> 
> Tel.: +49 (0)641 -99-15214
> Fax : +49 (0)641 -99-15009 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:57 MET