Compilation problems with GEANT3 under new ROOT 4.01/02

Hello all,

I’ve got the problem during compilation of GEANT3 (cvs HEAD version) and new ROOT 4.01/02. I was trying to compile GEANT3 with -DWITHROOT option (adding it into Makefile):

C++ compilation flags

CXXFLAGS := $(CXXOPTS) $(CLIBCXXOPTS) -I. -I$(ROOT_INCDIR) -ITGeant3 -DWITHROOT

Here is errorreport of compilation:

TGeant3/TGeant3.cxx
TGeant3/TGeant3.cxx: In member function Int_t TGeant3::NofVolDaughters(const char*) const': TGeant3/TGeant3.cxx:1571: error:NofVolDaughters’ undeclared (first use this
function)
TGeant3/TGeant3.cxx:1571: error: (Each undeclared identifier is reported only
once for each function it appears in.)
TGeant3/TGeant3.cxx: In member function const char* TGeant3::VolDaughterName(const char*, int) const': TGeant3/TGeant3.cxx:1594: error:VolDaughterName’ undeclared (first use this
function)
TGeant3/TGeant3.cxx: In member function Int_t TGeant3::VolDaughterCopyNo(const char*, int) const': TGeant3/TGeant3.cxx:1617: error:VolDaughterCopyNo’ undeclared (first use this
function)
make: *** [tgt_linux/TGeant3/TGeant3.o] Error 1

What I did wrong ?

Thanks in advance,
Sergey

Sergey,

Are you really running with the conditions discribed at:
root.cern.ch/root/vmc/VirtualMC.html

I have no problems with 4.01/02
and geant321+_vmc.0.7.tar.gz

Rene

Hello Rene,

Yes, I was keeping strictly all requirements from root.cern.ch/root/vmc/VirtualMC.html.
Moreover, in order to test myself I compiled GEANT3 (cvs HEAD version) under previous ROOT (Version 4.00/08) and had no problems.

Sergey
P.S. I work on Fedora Core 2

It seems I was wrong :confused:

I downloaded tarball geant321+_vmc.0.7.tar.gz and compiled it with no problem.
Probably cvs HEAD version only doesn’t work.

Sergey

Sergey,

I do not see any problem with the CVS head.

Rene