| Summary: | Problem compiling example program | ||
|---|---|---|---|
| Product: | Examples/Extended | Reporter: | kstump |
| Component: | analysis/A0 | Assignee: | Mark.Donszelmann |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 6.1 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
Could you specify the compiler version you are using (7.0 or 7.1)? Better upgrade to 7.1 then, since that is the supported compiler. reinstall worked fine with correct compiler |
I am trying to install geant4 on a windows XP machine using the install disk available from SLAC. I think I get it installed correct and then am trying to run the first example problem from their tutorial (A01) and get the following problem during the compile of the example: Compiling A01PhysicsList.cc ... A01PhysicsList.cc C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xmemory(87) : error C2535: 'std::allocator<_Ty>::pointer std::allocator<_Ty>::address(std::allocator<_Ty>::reference) const' : member function already defined or declared with [ _Ty=const std::_Tree<std::_Tmap_traits<const std::pair<G4int,G4int>,const G4VFermiFragment *,std::less<const std::pair<G4int,G4int>>,std::allocator<std::pair<const std::pair<G4int,G4int>,const G4VFermiFragment *>>,true>>::key_type ] C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xmemory(81) : see declaration of 'std::allocator<_Ty>::address' with [ _Ty=const std::_Tree<std::_Tmap_traits<const std::pair<G4int,G4int>,const G4VFermiFragment *,std::less<const std::pair<G4int,G4int>>,std::allocator<std::pair<const std::pair<G4int,G4int>,const G4VFermiFragment *>>,true>>::key_type ] C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xtree(122) : see reference to class template instantiation 'std::allocator<_Ty>' being compiled with [ _Ty=const std::_Tree<std::_Tmap_traits<const std::pair<G4int,G4int>,const G4VFermiFragment *,std::less<const std::pair<G4int,G4int>>,std::allocator<std::pair<const std::pair<G4int,G4int>,const G4VFermiFragment *>>,true>>::key_type ] C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\map(155) : see reference to class template instantiation 'std::_Tree<_Traits>' being compiled with [ _Traits=std::_Tmap_traits<const std::pair<G4int,G4int>,const G4VFermiFragment *,std::less<const std::pair<G4int,G4int>>,std::allocator<std::pair<const std::pair<G4int,G4int>,const G4VFermiFragment *>>,true> ] c:\geant4\geant4_6_0_p01\source\processes\hadronic\models\de_excitation\fermi_breakup\include\G4FermiFragmentsPool.hh(55) : see reference to class template instantiation 'std::multimap<_Kty,_Ty,_Pr,_Alloc>' being compiled with [ _Kty=const std::pair<G4int,G4int>, _Ty=const G4VFermiFragment *, _Pr=std::less<const std::pair<G4int,G4int>>, _Alloc=std::allocator<std::pair<const std::pair<G4int,G4int>,const G4VFermiFragment *>> ] Can you give me any indication of what the problem is? I have tried a reinstall several times and am stuck. Thanks!