Re: [ROOT] Compilation trouble with root 3.03/08

From: Maarten Ballintijn (maartenb@mit.edu)
Date: Mon Aug 26 2002 - 18:32:01 MEST


Hi Andreas,

Do you by any chance have a define of 'pi' in your software?
(e.g. "#define pi 3.1415....") That would explain the problem.

The solution would be to use TMath::Pi instead of a define.
In general it is dicouraged to use #define exactly for the kind
of problem this seems to be. See TMath.h for all available
constants!

	Cheers,
		Maarten.

On Mon, 2002-08-26 at 11:35, Andreas Zoglauer wrote:
> 
> Hi Alexandr!
> 
> With the intel compiler I get a similar error in the same file at the
> same line:
> 
> /home/andi/Bildrekonstruktion/Programme/MIWorks_vor200802/lib/Global_Cint.cxx
> /opt/prg/root/include/fproto.h(627): error: expected a ")"
>   struct G__var_array *G__getvarentry G__P((char *varname,int varhash,int
> *pi,struct G__var_array *varglobal,struct G__var_array *varlocal));
> 
> Therefore I do not think it is a compiler problem...
> 
> Andreas
> 
> 
> ----------------------------------------------------------------------
> Andreas Zoglauer
> 
> MPI fuer extraterrestrische Physik         Phone:    +49/89-30000-3848
> Postfach 1312                              Fax:      +49/89-30000-3569
> 85741 Garching, Germany                    Email:    zog@mpe.mpg.de
> ----------------------------------------------------------------------
> 
> 
-- 
Dr. Maarten Ballintijn

MASSACHUSETTS INSTITUTE OF TECHNOLOGY       Email: maartenb@mit.edu
Room 24-410                                 Phone: +1 (617) 253 4184
77 Massachusetts Avenue                     Fax:   +1 (617) 253 4360
Cambridge, MA 02139, USA                    http://www.mit.edu/~maartenb



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