[Gate-users] Compilation Error GATE7.1

Carlos Uribe carluri at phas.ubc.ca
Fri May 1 18:46:29 CEST 2015


Hi Everybody,

Can someone help me with the following compilation errors?

/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
private
   G4Cache& operator=(const G4Cache& rhs);
            ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
error: within this context
 class G4SPSRandomGenerator {
       ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
private
   G4Cache& operator=(const G4Cache& rhs);
            ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
error: within this context
 class G4SPSRandomGenerator {
       ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
private
   G4Cache& operator=(const G4Cache& rhs);
            ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
error: within this context
 class G4SPSRandomGenerator {
       ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
private
   G4Cache& operator=(const G4Cache& rhs);
            ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
error: within this context
 class G4SPSRandomGenerator {
       ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
private
   G4Cache& operator=(const G4Cache& rhs);
            ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
error: within this context
 class G4SPSRandomGenerator {
       ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
private
   G4Cache& operator=(const G4Cache& rhs);
            ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
error: within this context
 class G4SPSRandomGenerator {
       ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
private
   G4Cache& operator=(const G4Cache& rhs);
            ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
error: within this context
 class G4SPSRandomGenerator {
       ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
private
   G4Cache& operator=(const G4Cache& rhs);
            ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
error: within this context
 class G4SPSRandomGenerator {
       ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::bweights_t]â is
private
   G4Cache& operator=(const G4Cache& rhs);
            ^
In file included from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
                 from
/home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
/home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
error: within this context
 class G4SPSRandomGenerator {
       ^
In file included from
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/bits/stl_tree.h:61:0,
                 from
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/map:60,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/particles/management/include/G4ParticleTable.hh:53,
                 from
/home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:9:
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/bits/stl_algobase.h:682:11:
note: synthesized method âG4SPSRandomGenerator&
G4SPSRandomGenerator::operator=(const G4SPSRandomGenerator&)â first
required here
  *__first = __value;
           ^
make[2]: *** [CMakeFiles/Gate.dir/source/physics/src/GateVSource.cc.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
make: *** [all] Error 2

Thanks,

-- 
Carlos F Uribe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20150501/c43aa0f5/attachment-0001.html>


More information about the Gate-users mailing list