Re: [ROOT] ROOT 4.01/04

From: Rene Brun (brun@pcbrun.cern.ch)
Date: Fri Nov 19 2004 - 23:45:49 MET


Jacek,

I cannot reproduce your problem with TGButton on FedoraCore2
with gcc3.3.3.
It could be that you picked the tar file while I was transferring it?
If you can reproduce the problem, send me the shortest possible setup.

Concerning Qt, I will build the SLC3 version with Qt too,
but I need more space on the machine used for the build.
I hope to do this ealy next week.

Rene Brun


On 
Fri, 19 Nov 
2004, 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