Hi,
I just installed (compiled from the source code) Geant4.10.00 and root5.34.14 on a new (empty) SL6.4.
My old Geant4 code compiles but it generates many pages of warnings (see below).
Looks like the culprit line in my .cc file is this one line:
#include “TRandom3.h”
It cause this stream of complains. Perhaps you know how to make compiler happy again?
Thanks
Jan
[ 10%] Building CXX object CMakeFiles/g4simu.dir/src/DaLiKalGeneratorAction.cc.o
In file included from /usr/local/root5.34.14/include/root/TObject.h:232,
from /usr/local/root5.34.14/include/root/TNamed.h:26,
from /usr/local/root5.34.14/include/root/TRandom.h:26,
from /usr/local/root5.34.14/include/root/TRandom3.h:26,
from /home/cosy11/goodExamples/g4DLsimple-varyBfieldFunc/src/DaLiKalGeneratorAction.cc:19:
/usr/local/root5.34.14/include/root/TBuffer.h: In function ‘TBuffer& operator>>(TBuffer&, Short_t&)’:
/usr/local/root5.34.14/include/root/TBuffer.h:331: warning: declaration of ‘s’ shadows a global declaration
/usr/local/geant4.10.00-install/include/Geant4/CLHEP/Units/SystemOfUnits.h:133: warning: shadowed declaration is here
/usr/local/root5.34.14/include/root/TBuffer.h: In function ‘TBuffer& operator>>(TBuffer&, UShort_t&)’:
/usr/local/root5.34.14/include/root/TBuffer.h:332: warning: declaration of ‘s’ shadows a global declaration
/usr/local/geant4.10.00-install/include/Geant4/CLHEP/Units/SystemOfUnits.h:133: warning: shadowed declaration is here
/usr/local/root5.34.14/include/root/TBuffer.h: In function ‘TBuffer& operator>>(TBuffer&, TString&)’:
/usr/local/root5.34.14/include/root/TBuffer.h:342: warning: declaration of ‘s’ shadows a global declaration
/usr/local/geant4.10.00-install/include/Geant4/CLHEP/Units/SystemOfUnits.h:133: warning: shadowed declaration is here
/usr/local/root5.34.14/include/root/TBuffer.h: In function ‘TBuffer& operator<<(TBuffer&, Short_t)’:
/usr/local/root5.34.14/include/root/TBuffer.h:347: warning: declaration of ‘s’ shadows a global declaration
/usr/local/geant4.10.00-install/include/Geant4/CLHEP/Units/SystemOfUnits.h:133: warning: shadowed declaration is here
/usr/local/root5.34.14/include/root/TBuffer.h: In function ‘TBuffer& operator<<(TBuffer&, UShort_t)’:
/usr/local/root5.34.14/include/root/TBuffer.h:348: warning: declaration of ‘s’ shadows a global declaration
/usr/local/geant4.10.00-install/include/Geant4/CLHEP/Units/SystemOfUnits.h:133: warning: shadowed declaration is here
/usr/local/root5.34.14/include/root/TBuffer.h: In function ‘TBuffer& operator<<(TBuffer&, const TString&)’:
/usr/local/root5.34.14/include/root/TBuffer.h:358: warning: declaration of ‘s’ shadows a global declaration
/usr/local/geant4.10.00-install/include/Geant4/CLHEP/Units/SystemOfUnits.h:133: warning: shadowed declaration is here