[Paraview] Xdmf compilation fails on MSVC2010 64
Dominik Szczerba
dominik at itis.ethz.ch
Thu Jun 9 11:14:27 EDT 2011
Please find attached two patches to fix the issues. Tested on MSVC2010
64bit and Ubuntu 11.04 64bit.
Can you please review and commit or let me commit?
Thanks,
Dominik
On Thu, Jun 9, 2011 at 4:48 PM, Dominik Szczerba <dominik at itis.ethz.ch> wrote:
> 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
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch1
Type: application/octet-stream
Size: 1834 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110609/f173b48f/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch2
Type: application/octet-stream
Size: 2048 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110609/f173b48f/attachment-0003.obj>
More information about the ParaView
mailing list