[Paraview] [Xdmf] Xdmf compilation fails on MSVC2010 64
Dominik Szczerba
dominik at itis.ethz.ch
Thu Jun 9 11:36:54 EDT 2011
Thanks, please do, because I have more patches waiting in the queue... :)
On Thu, Jun 9, 2011 at 5:25 PM, David Partyka <david.partyka at kitware.com> wrote:
> I have a feeling these fixes are on the pv branch of Xdmf.git already but
> possibly not master because we have nightly dashboards that build ParaView
> with VS10 + 64bit. I'll see about correcting the divergence.
>
> On Thu, Jun 9, 2011 at 11:21 AM, Dominik Szczerba <dominik at itis.ethz.ch>
> wrote:
>>
>> patch2 contained unnecessary degradation from const_iterator to
>> iterator, the newly attached avoids it.
>> Both attached again for clarity.
>> Sorry.
>>
>> On Thu, Jun 9, 2011 at 5:14 PM, Dominik Szczerba <dominik at itis.ethz.ch>
>> wrote:
>> > 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
>> >>>
>> >>
>> >
>>
>> _______________________________________________
>> Xdmf mailing list
>> Xdmf at lists.kitware.com
>> http://www.kitware.com/cgi-bin/mailman/listinfo/xdmf
>>
>
>
More information about the ParaView
mailing list