Re: [ROOT] CINT fails when define-typedef within ROOT(3.03/09)

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Sat Mar 22 2003 - 01:10:47 MET


Hello Ozgur,

For this one, please use Philippe's workaround.  This kind of
preprocessor macro can not be handled by Cint, otherwise,
you need to use preprocessor option.

Thank you
Masa Goto


----- Original Message ----- 
From: "Philippe Canal" <pcanal@fnal.gov>
To: "Ozgur COBANOGLU" <Ozgur.Cobanoglu@cern.ch>; <roottalk@pcroot.cern.ch>
Cc: "Masaharu Goto" <MXJ02154@nifty.ne.jp>
Sent: Friday, March 21, 2003 3:59 AM
Subject: RE: [ROOT] CINT fails when define-typedef within ROOT(3.03/09)


> Hi,
> 
> You could try the following alternative:
> 
> {
> typedef int long32;
> typedef unsigned long32 eventMagicType;
> EventMagicType a = 0;
> }
> 
> Cheers,
> Philippe.
> 
> -----Original Message-----
> From: owner-roottalk@pcroot.cern.ch
> [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Ozgur COBANOGLU
> Sent: Thursday, March 20, 2003 11:18 AM
> To: roottalk@pcroot.cern.ch
> Subject: [ROOT] CINT fails when define-typedef within ROOT(3.03/09)
> 
> 
> platform : pentium 3, linux7.2, ROOT 3.03/09
> 
> when I try to do this in a ROOT sesion :
> 
> { #define long32 int
> typedef unsigned long32 eventMagicType;
> #define a ((eventMagicType)0)
> }
> 
> it complains like that :
> 
> Note: macro handled as typedef int long32; FILE:/tmp/file2JZlG5_cint
> LINE:3
> Error: class,struct,union or type eventMagicType not defined 
> FILE:/tmp/file2JZlG5_cint LINE:5
> *** Interpreter error recovered ***
> 
> now what to do ?.. 
> 
> thanks
> 
> -- 
> ----------------------------------------------------------------
> Ozgur Cobanoglu           E-posta: ozgur@nucleus.istanbul.edu.tr
> Istanbul Universitesi     Tel:     0090-212-511-84-80
> Nukleer Fizik Bolumu      Fax:     0090-212-519-08-34
> Vezneciler Istanbul       Mobil:   0090-505-512-72-90
> 34459 Turkiye                   
> ----------------------------------------------------------------
> Ozgur Cobanoglu          E-mail:   Ozgur.Cobanoglu@cern.ch 
> CERN EP/AID              Tel:      +41 (22) 767 2382
> CH-1211 Geneva 23        Fax:      +41 (22) 767 9585
> Switzerland              Building: 53-R-024
> ----------------------------------------------------------------
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET