[Quickfix-developers] Tried to build quickfix with python
Brought to you by:
orenmnero
From: Steffen W. (B. R. FRANK) <s.w...@bl...> - 2017-11-20 11:22:41
|
Hi, I tried to build the latest quickfix with python support but I received some errors and the make process stopped. Anyone know the reason for these errors? I'm building on Redhat 7.2. Output: ... QuickfixPython.cpp: In function 'PyObject* _wrap_FieldMap_begin(PyObject*, PyObject*)': QuickfixPython.cpp:18220:12: error: no match for 'operator=' (operand types are 'SwigValueWrapper<std::_Rb_tree_const_iterator<std::pair<const int, FIX::FieldBase> > >' and 'FIX::FieldMap::const_iterator {aka __gnu_cxx::__normal_iterator<const FIX::FieldBase*, std::vector<FIX::FieldBase, std::allocator<FIX::FieldBase> > >}') result = ((FIX::FieldMap const *)arg1)->begin(); ^ QuickfixPython.cpp:18220:12: note: candidates are: QuickfixPython.cpp:26:21: note: SwigValueWrapper<T>& SwigValueWrapper<T>::operator=(const SwigValueWrapper<T>&) [with T = std::_Rb_tree_const_iterator<std::pair<const int, FIX::FieldBase> >] SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); ^ QuickfixPython.cpp:26:21: note: no known conversion for argument 1 from 'FIX::FieldMap::const_iterator {aka __gnu_cxx::__normal_iterator<const FIX::FieldBase*, std::vector<FIX::FieldBase, std::allocator<FIX::FieldBase> > >}' to 'const SwigValueWrapper<std::_Rb_tree_const_iterator<std::pair<const int, FIX::FieldBase> > >&' QuickfixPython.cpp:30:21: note: SwigValueWrapper<T>& SwigValueWrapper<T>::operator=(const T&) [with T = std::_Rb_tree_const_iterator<std::pair<const int, FIX::FieldBase> >] SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } ^ QuickfixPython.cpp:30:21: note: no known conversion for argument 1 from 'FIX::FieldMap::const_iterator {aka __gnu_cxx::__normal_iterator<const FIX::FieldBase*, std::vector<FIX::FieldBase, std::allocator<FIX::FieldBase> > >}' to 'const std::_Rb_tree_const_iterator<std::pair<const int, FIX::FieldBase> >&' QuickfixPython.cpp:18223:115: error: invalid static_cast from type 'SwigValueWrapper<std::_Rb_tree_const_iterator<std::pair<const int, FIX::FieldBase> > >' to type 'const iterator& {aka const __gnu_cxx::__normal_iterator<FIX::FieldBase*, std::vector<FIX::FieldBase, std::allocator<FIX::FieldBase> > >&}' resultobj = SWIG_NewPointerObj((new FIX::FieldMap::iterator(static_cast< const FIX::FieldMap::iterator& >(result))), SWIGTYPE_p_std__multimapT_int_FIX__FieldBase_message_order_ALLOCATORT_std__pairT_int_const_FIX__FieldBase_t_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); ^ QuickfixPython.cpp:1173:89: note: in definition of macro 'SWIG_NewPointerObj' #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) ^ QuickfixPython.cpp: In function 'PyObject* _wrap_FieldMap_end(PyObject*, PyObject*)': QuickfixPython.cpp:18246:12: error: no match for 'operator=' (operand types are 'SwigValueWrapper<std::_Rb_tree_const_iterator<std::pair<const int, FIX::FieldBase> > >' and 'FIX::FieldMap::const_iterator {aka __gnu_cxx::__normal_iterator<const FIX::FieldBase*, std::vector<FIX::FieldBase, std::allocator<FIX::FieldBase> > >}') result = ((FIX::FieldMap const *)arg1)->end(); ^ QuickfixPython.cpp:18246:12: note: candidates are: QuickfixPython.cpp:26:21: note: SwigValueWrapper<T>& SwigValueWrapper<T>::operator=(const SwigValueWrapper<T>&) [with T = std::_Rb_tree_const_iterator<std::pair<const int, FIX::FieldBase> >] SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); ^ QuickfixPython.cpp:26:21: note: no known conversion for argument 1 from 'FIX::FieldMap::const_iterator {aka __gnu_cxx::__normal_iterator<const FIX::FieldBase*, std::vector<FIX::FieldBase, std::allocator<FIX::FieldBase> > >}' to 'const SwigValueWrapper<std::_Rb_tree_const_iterator<std::pair<const int, FIX::FieldBase> > >&' QuickfixPython.cpp:30:21: note: SwigValueWrapper<T>& SwigValueWrapper<T>::operator=(const T&) [with T = std::_Rb_tree_const_iterator<std::pair<const int, FIX::FieldBase> >] SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } ^ QuickfixPython.cpp:30:21: note: no known conversion for argument 1 from 'FIX::FieldMap::const_iterator {aka __gnu_cxx::__normal_iterator<const FIX::FieldBase*, std::vector<FIX::FieldBase, std::allocator<FIX::FieldBase> > >}' to 'const std::_Rb_tree_const_iterator<std::pair<const int, FIX::FieldBase> >&' QuickfixPython.cpp:18249:115: error: invalid static_cast from type 'SwigValueWrapper<std::_Rb_tree_const_iterator<std::pair<const int, FIX::FieldBase> > >' to type 'const iterator& {aka const __gnu_cxx::__normal_iterator<FIX::FieldBase*, std::vector<FIX::FieldBase, std::allocator<FIX::FieldBase> > >&}' resultobj = SWIG_NewPointerObj((new FIX::FieldMap::iterator(static_cast< const FIX::FieldMap::iterator& >(result))), SWIGTYPE_p_std__multimapT_int_FIX__FieldBase_message_order_ALLOCATORT_std__pairT_int_const_FIX__FieldBase_t_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); ^ QuickfixPython.cpp:1173:89: note: in definition of macro 'SWIG_NewPointerObj' #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) ^ QuickfixPython.cpp: In function 'PyObject* _wrap_FieldMap_g_begin(PyObject*, PyObject*)': QuickfixPython.cpp:18275:119: error: invalid static_cast from type 'SwigValueWrapper<std::_Rb_tree_const_iterator<std::pair<const int, std::vector<FIX::FieldMap*> > > >' to type 'const g_iterator& {aka const std::_Rb_tree_iterator<std::pair<const int, std::vector<FIX::FieldMap*> > >&}' resultobj = SWIG_NewPointerObj((new FIX::FieldMap::g_iterator(static_cast< const FIX::FieldMap::g_iterator& >(result))), SWIGTYPE_p_std__mapT_int_std__vectorT_FIX__FieldMap_p_t_std__lessT_int_t_ALLOCATORT_std__pairT_int_const_std__vectorT_FIX__FieldMap_p_t_t_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); ^ QuickfixPython.cpp:1173:89: note: in definition of macro 'SWIG_NewPointerObj' #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) ^ QuickfixPython.cpp: In function 'PyObject* _wrap_FieldMap_g_end(PyObject*, PyObject*)': QuickfixPython.cpp:18301:119: error: invalid static_cast from type 'SwigValueWrapper<std::_Rb_tree_const_iterator<std::pair<const int, std::vector<FIX::FieldMap*> > > >' to type 'const g_iterator& {aka const std::_Rb_tree_iterator<std::pair<const int, std::vector<FIX::FieldMap*> > >&}' resultobj = SWIG_NewPointerObj((new FIX::FieldMap::g_iterator(static_cast< const FIX::FieldMap::g_iterator& >(result))), SWIGTYPE_p_std__mapT_int_std__vectorT_FIX__FieldMap_p_t_std__lessT_int_t_ALLOCATORT_std__pairT_int_const_std__vectorT_FIX__FieldMap_p_t_t_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); ^ QuickfixPython.cpp:1173:89: note: in definition of macro 'SWIG_NewPointerObj' #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) ^ QuickfixPython.cpp: In function 'PyObject* Swig_var_headerOrder_get()': QuickfixPython.cpp:18324:46: error: 'headerOrder' is not a member of 'FIX' pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(FIX::headerOrder), SWIGTYPE_p_int, 0 ); ^ QuickfixPython.cpp:1173:89: note: in definition of macro 'SWIG_NewPointerObj' #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) ^ QuickfixPython.cpp:18324:30: note: in expansion of macro 'SWIG_as_voidptr' pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(FIX::headerOrder), SWIGTYPE_p_int, 0 ); ^ QuickfixPython.cpp: In function 'PyObject* Swig_var_GTBookingInst_ACCUMULATE_EXECTUIONS_UNTIL_FORDER_IS_FILLED_OR_EXPIRES_get()': QuickfixPython.cpp:209978:44: error: 'GTBookingInst_ACCUMULATE_EXECTUIONS_UNTIL_FORDER_IS_FILLED_OR_EXPIRES' is not a member of 'FIX' pyobj = SWIG_From_int(static_cast< int >(FIX::GTBookingInst_ACCUMULATE_EXECTUIONS_UNTIL_FORDER_IS_FILLED_OR_EXPIRES)); ^ QuickfixPython.cpp: In function 'PyObject* Swig_var_GTBookingInst_ACCUMULATE_UNTIL_VERBALLLY_NOTIFIED_OTHERWISE_get()': QuickfixPython.cpp:209992:44: error: 'GTBookingInst_ACCUMULATE_UNTIL_VERBALLLY_NOTIFIED_OTHERWISE' is not a member of 'FIX' pyobj = SWIG_From_int(static_cast< int >(FIX::GTBookingInst_ACCUMULATE_UNTIL_VERBALLLY_NOTIFIED_OTHERWISE)); ^ QuickfixPython.cpp: In function 'PyObject* _wrap_DataDictionary_getGroup(PyObject*, PyObject*)': QuickfixPython.cpp:255402:9: warning: unused variable 'res' [-Wunused-variable] int res = SWIG_ConvertPtr(obj4, &argp, SWIGTYPE_p_FIX__DataDictionary, 0 ); ^ |