Message: Compilation error G4INCLInverseInterpolationTable.hh on Windows Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Compilation error G4INCLInverseInterpolationTable.hh on Windows 

Forum: Installation and Configuration
Date: 19 Dec, 2013
From: Tom Roberts <Tom Roberts>

When building on Windows I get this compilation error. Note I have already built on both Linux and Mac without error.

This is Geant4.9.6.p02

Any ideas how to fix it?

G4INCLInverseInterpolationTable.cc^M
c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xutility(263) : error C2678: binary '<' : no operator found which takes a left-hand operand of type 'const G4double' (or there is no acceptable conversion)^M
        c:\G4beamline-2.15z-source\LibrarySource\geant4.9.6.p02\source\processes\hadronic\models\inclxx\utils\include\G4INCLInverseInterpolationTable.hh(85): could be 'G4bool G4INCL::operator <(const G4INCL::InterpolationNode &,const G4double)' [found using argument-dependent lookup]^M
        while trying to match the argument list '(const G4double, const G4INCL::InterpolationNode)'^M
        c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\algorithm(2264) : see reference to function template instantiation 'bool std::_Debug_lt<G4INCL::InterpolationNode,_Ty>(const _Ty1 &,const _Ty2 &,const wchar_t *,unsigned int)' being compiled^M
        with^M
        [^M
            _Ty=G4double,^M
            _Ty1=G4INCL::InterpolationNode,^M
            _Ty2=G4double^M
        ]^M
        c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\algorithm(2276) : see reference to function template instantiation '_FwdIt std::_Lower_bound<std::_Vector_const_iterator<_Ty,_Alloc>,double,__w64 int>(_FwdIt,_FwdIt,const double &,_Diff *)' being compiled^M
        with^M
        [^M
            _FwdIt=std::_Vector_const_iterator<G4INCL::InterpolationNode,std::allocator<G4INCL::InterpolationNode>>,^M
            _Ty=G4INCL::InterpolationNode,^M
            _Alloc=std::allocator<G4INCL::InterpolationNode>,^M
            _Diff=__w64 int^M
        ]^M

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Compilation error G4INCLInverseInterpolationTable.hh on Windows   (Tom Roberts - 19 Dec, 2013)
 Add Message Add Message
to: "Compilation error G4INCLInverseInterpolationTable.hh on Windows"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]