Re: problem in compiling geant4_vmc 2.13 against geant4.9.5

From: Ivana Hrivnacova <Ivana.Hrivnacova_at_cern.ch>
Date: Tue, 17 Jan 2012 14:16:56 +0100

Dear Germano, and all VMC users,

The patched version 2.13a is now available from the Root VMC web site: http://root.cern.ch/drupal/content/vmc

Best regards,

Ivana

On 01/16/2012 12:48 PM, Germano Bonomi wrote:
> Dear VMC users,
> we are having problems in compiling geant4_vmc 2.13 against geant4.9.5.
> We are using Scientific Linux 5.7, geant4.9.5, root v5-32-00-patches_at_42605.
> When using the tar.gz file geant4_vmc.2.13.tar.gz or the
> "svn co https://root.cern.ch/svn/geant4_vmc/tags/v2-13 geant4_vmc"
> we are having the error message listed below.
>
> This messages disappear and everything compile just fine when using the
> trunk version "svn co https://root.cern.ch/svn/geant4_vmc/trunk
> geant4_vmc".
>
> Regards,
> Germano Bonomi (AEgIS experiment)
>
> -----------------------
> Error message:
>
> physics/src/TG4ParticlesChecker.cxx: In member function 'G4bool
> TG4ParticlesChecker::CheckName(G4ParticleDefinition*, TParticlePDG*)
> const':
> physics/src/TG4ParticlesChecker.cxx:203: error: ISO C++ says that these
> are ambiguous, even though the worst conversion for the first is better
> than the worst conversion for the second:
> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/basic_string.h:702:
> note: candidate 1: typename _Alloc::rebind<_CharT>::other::reference
> std::basic_string<_CharT, _Traits, _Alloc>::operator[](typename
> _Alloc::rebind<_CharT>::other::size_type) [with _CharT = char, _Traits =
> std::char_traits<char>, _Alloc = std::allocator<char>]
> physics/src/TG4ParticlesChecker.cxx:203: note: candidate 2:
> operator[](const char*, int) <built-in>
> make[1]: ***
> [/usr/local/geant4_vmc/source/../tmp/tgt_linux/physics/src/TG4ParticlesChecker.o]
> Error 1
>

-- 
==============================================================
e-mail:  Ivana.Hrivnacova_at_cern.ch
address: Institut de Physique Nucléaire, 91406 Orsay, France
phone:   +33 169156594
==============================================================
Received on Tue Jan 17 2012 - 14:17:10 CET

This archive was generated by hypermail 2.2.0 : Thu Mar 15 2012 - 17:25:01 CET