Error in Windows Build
Prashant Bafna <[email protected]> Sun, 22 Sep 2013 20:01:33 +0530
| Newsgroups | gmane.editors.abiword.devel |
|---|---|
| Message-ID | <CAGWtQ3LH=tyQTfLgawD+N1EkUUx-EjfjkkmXwX6epPhKpwNHsQ@mail.gmail.com> |
Hi, With respect to some changes in the Tables code, i think there is an error in the Windows build: Refer: 1>..\..\src\text\fmt\xp\fp_TableContainer.cpp(2998) : warning C4244: 'argument' : conversion from 'double' to 'UT_sint32', possible loss of data 1>C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\xutility(315) : error C2664: 'bool (UT_sint32,fp_TableRowColumn *)' : cannot convert parameter 2 from 'const UT_sint32' to 'fp_TableRowColumn *' 1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast 1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\algorithm(2371) : see reference to function template instantiation 'bool std::_Debug_lt_pred<bool(__cdecl *)(UT_sint32,fp_TableRowColumn *),_Ty,fp_TableRowColumn*>(_Pr,const _Ty1 &,const _Ty2 &,const wchar_t *,unsigned int)' being compiled 1> with 1> [ 1> _Ty=UT_sint32, 1> _Pr=bool (__cdecl *)(UT_sint32,fp_TableRowColumn *), 1> _Ty1=UT_sint32, 1> _Ty2=fp_TableRowColumn * 1> ] 1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\algorithm(2385) : see reference to function template instantiation '_FwdIt std::_Upper_bound<std::_Vector_const_iterator<_Ty,_Alloc>,int,__w64 int,bool(__cdecl *)(UT_sint32,fp_TableRowColumn *)>(_FwdIt,_FwdIt,const int &,_Pr,_Diff *)' being compiled 1> with 1> [ 1> _FwdIt=std::_Vector_const_iterator<fp_TableRowColumn *,std::allocator<fp_TableRowColumn *>>, 1> _Ty=fp_TableRowColumn *, 1> _Alloc=std::allocator<fp_TableRowColumn *>, 1> _Pr=bool (__cdecl *)(UT_sint32,fp_TableRowColumn *), 1> _Diff=__w64 int 1> ] 1> ..\..\src\text\fmt\xp\fp_TableContainer.cpp(3649) : see reference to function template instantiation '_FwdIt std::upper_bound<std::_Vector_const_iterator<_Ty,_Alloc>,UT_sint32,bool(__cdecl *)(UT_sint32,fp_TableRowColumn *)>(_FwdIt,_FwdIt,const int &,_Pr)' being compiled 1> with 1> [ 1> _FwdIt=std::_Vector_const_iterator<fp_TableRowColumn *,std::allocator<fp_TableRowColumn *>>, 1> _Ty=fp_TableRowColumn *, 1> _Alloc=std::allocator<fp_TableRowColumn *>, 1> _Pr=bool (__cdecl *)(UT_sint32,fp_TableRowColumn *) 1> ] 1>fp_TestRoutines.cpp Thanks, Prashant