[Paraview] Xdmf compilation fails on MSVC2010 64

Dominik Szczerba dominik at itis.ethz.ch
Thu Jun 9 10:48:59 EDT 2011


Was able to fix all but the two:

Error	3	error C2864: 'XdmfHex125Generator::SpectralOperations::C' :
only static const integral data members can be initialized within a
class	E:\pack\Xdmf\libsrc\XdmfHex125Generator.cxx	84
Error	1	error C2864: 'XdmfHex64Generator::SpectralOperations::C' :
only static const integral data members can be initialized within a
class	E:\pack\Xdmf\libsrc\XdmfHex64Generator.cxx	74

According to:

http://msdn.microsoft.com/en-us/library/acxkb76w(v=vs.80).aspx

Only integers are allowed. Please advise and I send in a patch.
Thanks,
Dominik

On Thu, Jun 9, 2011 at 4:21 PM, Dominik Szczerba <dominik at itis.ethz.ch> wrote:
> Compilation of the latest Xdmf from git://paraview.org/Xdmf.git fails
> on Windows with the below errors.
>
> Regards,
> Dominik
>
> Error   61      error C2440: 'initializing' : cannot convert from
> 'std::_Tree_iterator<_Mytree>' to
> 'std::_Tree_const_iterator<_Mytree>'    E:\pack\Xdmf\libsrc\XdmfHex64Generator.cxx      148
> Error   67      error C2440: 'initializing' : cannot convert from
> 'std::_Tree_iterator<_Mytree>' to
> 'std::_Tree_const_iterator<_Mytree>'    E:\pack\Xdmf\libsrc\XdmfHex125Generator.cxx     174
> Error   73      error C2668: 'log10' : ambiguous call to overloaded
> function        E:\pack\Xdmf\vtk\vtkXdmfReaderInternal.cxx      835
> Error   74      error C2668: 'log10' : ambiguous call to overloaded
> function        E:\pack\Xdmf\vtk\vtkXdmfReaderInternal.cxx      840
> Error   77      error C2668: 'log10' : ambiguous call to overloaded
> function        E:\pack\Xdmf\vtk\vtkXdmfReaderInternal.cxx      835
> Error   78      error C2668: 'log10' : ambiguous call to overloaded
> function        E:\pack\Xdmf\vtk\vtkXdmfReaderInternal.cxx      840
> Error   72      error C2668: 'sqrt' : ambiguous call to overloaded
> function        E:\pack\Xdmf\vtk\vtkXdmfReaderInternal.cxx      823
> Error   76      error C2668: 'sqrt' : ambiguous call to overloaded
> function        E:\pack\Xdmf\vtk\vtkXdmfReaderInternal.cxx      823
> Error   63      error C2678: binary '==' : no operator found which takes a
> left-hand operand of type 'std::_Tree_const_iterator<_Mytree>' (or
> there is no acceptable
> conversion)     E:\pack\Xdmf\libsrc\XdmfHex64Generator.cxx      149
> Error   68      error C2678: binary '==' : no operator found which takes a
> left-hand operand of type 'std::_Tree_const_iterator<_Mytree>' (or
> there is no acceptable
> conversion)     E:\pack\Xdmf\libsrc\XdmfHex125Generator.cxx     175
> Error   62      error C2864: 'XdmfHex125Generator::SpectralOperations::C' :
> only static const integral data members can be initialized within a
> class   E:\pack\Xdmf\libsrc\XdmfHex125Generator.cxx     84
> Error   59      error C2864: 'XdmfHex64Generator::SpectralOperations::C' :
> only static const integral data members can be initialized within a
> class   E:\pack\Xdmf\libsrc\XdmfHex64Generator.cxx      74
>


More information about the ParaView mailing list