[Gate-users] Error during GATE 6.2 compilation on Fedora 17 64-bit
Nicola Poles
nicola.poles at gmail.com
Thu Oct 25 19:33:04 CEST 2012
Hi Pawel,
this issue has already been discussed. Its due to the fact that different compilers or even different versions of the same compiler can treat non standard code very differently.
The easiest way to fix your problem is to open:
/path_to_gate_6_2/source/digits_hits/include/GateMaps.hh
with a text editor and edit line 120 to read:
this->insert(*iter);
Then recompile. Hope this helps.
Nicola Poles
nicola.poles at gmail.com
On Oct 25, 2012, at 7:16 PM, Paweł Kowalski <flukson at gmail.com> wrote:
> Hello,
>
> After compilation of 29% of Gate, I get error listed below. Do you
> know what could be a reason of this error? I am new to Fedora. I would
> be grateful if someone told me how to solve this problem. Any help
> would be appreciated.
>
> Best regards,
> Paweł Kowalski,
> NCBJ, Poland
>
> [ 29%] Building CXX object
> CMakeFiles/Gate.dir/source/geometry/src/GatePETScannerSystem.cc.o
> [ 29%] Building CXX object
> CMakeFiles/Gate.dir/source/geometry/src/GateMDBFieldReader.cc.o
> In file included from
> /opt/gate_v6.2/source/geometry/include/GateMDBFieldDecoder.hh:17:0,
> from
> /opt/gate_v6.2/source/geometry/include/GateMDBFieldReader.hh:19,
> from
> /opt/gate_v6.2/source/geometry/src/GateMDBFieldReader.cc:19:
> /opt/gate_v6.2/source/digits_hits/include/GateMaps.hh: In
> instantiation of 'GateMap<Tkey, Tvalue>::GateMap(size_t, GateMap<Tkey,
> Tvalue>**) [with Tkey = G4String; Tvalue = int; size_t = long unsigned
> int]':
> /opt/gate_v6.2/source/geometry/src/GateMDBFieldReader.cc:207:85:
> required from here
> /opt/gate_v6.2/source/digits_hits/include/GateMaps.hh:120:7: error:
> 'insert' was not declared in this scope, and no declarations were
> found by argument-dependent lookup at the point of instantiation
> [-fpermissive]
> /opt/gate_v6.2/source/digits_hits/include/GateMaps.hh:120:7: note:
> declarations in dependent base 'std::map<G4String, int,
> std::less<G4String>, std::allocator<std::pair<const G4String, int> >
>> ' are not found by unqualified lookup
> /opt/gate_v6.2/source/digits_hits/include/GateMaps.hh:120:7: note: use
> 'this->insert' instead
> In file included from
> /opt/geant4.9.5.p01-install/include/Geant4/G4PhysicalConstants.hh:27:0,
> from /opt/geant4.9.5.p01-install/include/Geant4/globals.hh:71,
> from
> /opt/gate_v6.2/source/geometry/include/GateMDBFieldReader.hh:15,
> from
> /opt/gate_v6.2/source/geometry/src/GateMDBFieldReader.cc:19:
> /opt/CLHEP_2_1_1_0/CLHEP/include/CLHEP/Units/PhysicalConstants.h:80:21:
> warning: 'CLHEP::electron_charge' defined but not used
> [-Wunused-variable]
> make[2]: *** [CMakeFiles/Gate.dir/source/geometry/src/GateMDBFieldReader.cc.o]
> Błąd 1
> make[1]: *** [CMakeFiles/Gate.dir/all] Błąd 2
> make: *** [all] Błąd 2
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
More information about the Gate-users
mailing list