RE: [ROOT] ROOT 4.01/04

From: Faine, Valeri (fine@bnl.gov)
Date: Sat Nov 20 2004 - 01:45:19 MET


> 
> Hi Jacek,
> 
>    looks like there is somewhere a
> 
> #define emit xxxx
> 
> in one of the other headers that you include that screws up the "emit"
> argument.

Check whether you did pick occasionally

$QTDIR/include/qobjectdefs.h:#define emit      

Valeri
   

> 
> Cheers, Fons.
> 
> 
> 
> 
> Jacek M. Holeczek wrote:
> > Hi,
> > I am trying to use your binary ROOT distributions ...
> > However .... it seems that on different systems, different sets of
> > libraries are built/provided by default ...
> > For example the FedoraCore2 binary distribution contains Qt related
> > libraries (libGQt.so, libQtRoot.so), which are missing in some other
> > distributions (for example in the SLC3 based one).
> > Would it be possible that you build "all" libraries on "all" systems?
> > (Well, of course if they can actually be built on a particular system.)
> >
> > Then, I would like to report a "problem" on FedoraCore2/i386 running
> > g++ (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7).
> > While compiling a piece of C++ code I get :
> > -------------------------------------------
> > In file included from PaletteWindow.cc:73:
> > /ROOT/v4.01.04/include/TGButton.h: In member function `
> >    virtual void TGButton::SetOn(bool, bool)':
> > /ROOT/v4.01.04/include/TGButton.h:116: error: syntax
> >    error before `;' token
> > /ROOT/v4.01.04/include/TGButton.h: In member function `
> >    virtual void TGButton::Toggle(bool)':
> > /ROOT/v4.01.04/include/TGButton.h:119: error: syntax
> >    error before `;' token
> > /ROOT/v4.01.04/include/TGButton.h: In member function `
> >    virtual void TGCheckButton::SetState(EButtonState, bool)':
> > /ROOT/v4.01.04/include/TGButton.h:251: error: syntax
> >    error before `;' token
> > /ROOT/v4.01.04/include/TGButton.h: In member function `
> >    virtual void TGRadioButton::SetState(EButtonState, bool)':
> > /ROOT/v4.01.04/include/TGButton.h:296: error: syntax
> >    error before `;' token
> > -------------------------------------------
> > I have found that if I modify these lines replacing "emit" with "xemit"
:
> > -------------------------------------------
> > ...
> >    virtual void         SetOn(Bool_t on = kTRUE,  Bool_t xemit = kFALSE)
{
> SetDown(on, xemit); }
> > ...
> >    virtual void         Toggle(Bool_t xemit = kFALSE) { SetDown(IsDown()
?
> kFALSE : kTRUE, xemit); }
> > ...
> >    virtual void   SetState(EButtonState state, Bool_t xemit = kFALSE) {
> PSetState(fPrevState = state, xemit); }
> > ...
> >    virtual void SetState(EButtonState state, Bool_t xemit = kFALSE) {
> PSetState(fPrevState = state, xemit); }
> > ...
> > -------------------------------------------
> > everything works fine ...
> > No idea where this "bug" comes from ...
> >
> > Best regards,
> > Jacek.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET