Initially I had no problem installing geant4.3.2. All examples compiled/ran AOK. Then for some bizarre reason the compiler decided it didn't want to compil G4DataVector.hh. I haven't altered this file nor the compiler over the course of the dilemna. If anyone can help I'd appreciate it. The compilation error is listed below. Starting installation... /usr/local/geant4.3.2/config/scripts Making dependency for file src/G4VStateDependent.cc ... Making dependency for file src/G4UnitsTable.cc ... Making dependency for file src/G4Timer.cc ... Making dependency for file src/G4StateManager.cc ... Making dependency for file src/G4PhysicsVector.cc ... Making dependency for file src/G4PhysicsTable.cc ... Making dependency for file src/G4PhysicsOrderedFreeVector.cc ... Making dependency for file src/G4PhysicsLogVector.cc ... Making dependency for file src/G4PhysicsLnVector.cc ... Making dependency for file src/G4PhysicsLinearVector.cc ... Making dependency for file src/G4PhysicsFreeVector.cc ... Making dependency for file src/G4LPhysicsFreeVector.cc ... Making dependency for file src/G4ios.cc ... Making dependency for file src/G4Exception.cc ... Compiling G4Exception.cc ... Compiling G4ios.cc ... Compiling G4LPhysicsFreeVector.cc ... Compiling G4PhysicsFreeVector.cc ... In file included from include/G4PhysicsFreeVector.hh:59, from src/G4PhysicsFreeVector.cc:44: include/G4DataVector.hh: In method `G4DataVector::G4DataVector ()': include/G4DataVector.hh:81: parse error before `::' include/G4DataVector.hh: In method `G4DataVector::G4DataVector (unsigned int)': include/G4DataVector.hh:87: parse error before `::' include/G4DataVector.hh: In method `G4DataVector::G4DataVector (unsigned int, double)': include/G4DataVector.hh:93: parse error before `::' In file included from src/G4PhysicsFreeVector.cc:44:
It looks like your compiler is having problems resolving the 'G4std' macro. What compiler version are you using? You might have installed some packages/rpms that screwed g++. Try re-installing the necessary set of packages for your g++ compiler.
From iwan maximus cornelius <ic02@uow.edu.au>: I am running gcc-2.96 under red hat 7.0 on an i386. I have already reinstalled the compiler but the problem remains.
Please, see also problem report #318 and related item in our FAQ page. Your problem is the compiler version you're using which is distributed with Red-Hat 7.0 and is know to be buggy.