[C++-sig] Trouble with Py++/boost.python

Robert O'Callahan ropoctl at gmail.com
Mon Jan 29 19:50:23 CET 2007


Hello,

This is the current problem I'm having trying to get py++ to bind
openNURBS.  Tell me if more information is needed to diagnose this.

Building Boost.Regex with the optional Unicode/ICU support disabled.
> Please refer to the Boost.Regex documentation for more information
> (and if you don't know what ICU is then you probably don't need it).
> ...patience...
> ...found 1226 targets...
> ...updating 2 targets...
> gcc.compile.c++ ../../../bin.v2/libs/python/opennurbs/gcc-4.1.1
> /debug/bindings2.o
> ../../../boost/python/detail/invoke.hpp: In function 'PyObject*
> boost::python::detail::invoke(boost::python::detail::invoke_tag_<false,
> false>, const RC&, F&, AC0&, AC1&) [with RC =
> boost::python::detail::specify_a_return_value_policy_to_wrap_functions_returning<FILE*>,
> F = FILE* (*)(const wchar_t*, const wchar_t*), AC0 =
> boost::python::arg_from_python<const wchar_t*>, AC1 =
> boost::python::arg_from_python<const wchar_t*>]':
> ../../../boost/python/detail/caller.hpp:199:   instantiated from
> 'PyObject* boost::python::detail::caller_arity<2u>::impl<F, Policies,
> Sig>::operator()(PyObject*, PyObject*) [with F = FILE* (*)(const wchar_t*,
> const wchar_t*), Policies = boost::python::default_call_policies, Sig =
> boost::mpl::vector3<FILE*, const wchar_t*, const wchar_t*>]'
> ../../../boost/python/object/py_function.hpp:38:   instantiated from
> 'PyObject*
> boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*,
> PyObject*) [with Caller = boost::python::detail::caller<FILE* (*)(const
> wchar_t*, const wchar_t*), boost::python::default_call_policies,
> boost::mpl::vector3<FILE*, const wchar_t*, const wchar_t*> >]'
> bindings2.cpp:718:   instantiated from here
> ../../../boost/python/detail/invoke.hpp:75: error: no match for call to
> '(const
> boost::python::detail::specify_a_return_value_policy_to_wrap_functions_returning<FILE*>)
> (FILE*)'
> ../../../boost/python/detail/invoke.hpp: In function 'PyObject*
> boost::python::detail::invoke(boost::python::detail::invoke_tag_<false,
> false>, const RC&, F&, AC0&, AC1&) [with RC =
> boost::python::detail::specify_a_return_value_policy_to_wrap_functions_returning<FILE*>,
> F = FILE* (*)(const char*, const char*), AC0 =
> boost::python::arg_from_python<const char*>, AC1 =
> boost::python::arg_from_python<const char*>]':
> ../../../boost/python/detail/caller.hpp:199:   instantiated from
> 'PyObject* boost::python::detail::caller_arity<2u>::impl<F, Policies,
> Sig>::operator()(PyObject*, PyObject*) [witBuilding Boost.Regex with the
> optional Unicode/ICU support disabled.
> Please refer to the Boost.Regex documentation for more information
> (and if you don't know what ICU is then you probably don't need it).
> ...patience...
> ...found 1226 targets...
> ...updating 2 targets...
> gcc.compile.c++ ../../../bin.v2/libs/python/opennurbs/gcc-4.1.1
> /debug/bindings2.o
> ../../../boost/python/detail/invoke.hpp: In function 'PyObject*
> boost::python::detail::invoke(boost::python::detail::invoke_tag_<false,
> false>, const RC&, F&, AC0&, AC1&) [with RC =
> boost::python::detail::specify_a_return_value_policy_to_wrap_functions_returning<FILE*>,
> F = FILE* (*)(const wchar_t*, const wchar_t*), AC0 =
> boost::python::arg_from_python<const wchar_t*>, AC1 =
> boost::python::arg_from_python<const wchar_t*>]':
> ../../../boost/python/detail/caller.hpp:199:   instantiated from
> 'PyObject* boost::python::detail::caller_arity<2u>::impl<F, Policies,
> Sig>::operator()(PyObject*, PyObject*) [with F = FILE* (*)(const wchar_t*,
> const wchar_t*), Policies = boost::python::default_call_policies, Sig =
> boost::mpl::vector3<FILE*, const wchar_t*, const wchar_t*>]'
> ../../../boost/python/object/py_function.hpp:38:   instantiated from
> 'PyObject*
> boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*,
> PyObject*) [with Caller = boost::python::detail::caller<FILE* (*)(const
> wchar_t*, const wchar_t*), boost::python::default_call_policies,
> boost::mpl::vector3<FILE*, const wchar_t*, const wchar_t*> >]'
> bindings2.cpp:718:   instantiated from here
> ../../../boost/python/detail/invoke.hpp:75: error: no match for call to
> '(const
> boost::python::detail::specify_a_return_value_policy_to_wrap_functions_returning<FILE*>)
> (FILE*)'
> ../../../boost/python/detail/invoke.hpp: In function 'PyObject*
> boost::python::detail::invoke(boost::python::detail::invoke_tag_<false,
> false>, const RC&, F&, AC0&, AC1&) [with RC =
> boost::python::detail::specify_a_return_value_policy_to_wrap_functions_returning<FILE*>,
> F = FILE* (*)(const char*, const char*), AC0 =
> boost::python::arg_from_python<const char*>, AC1 =
> boost::python::arg_from_python<const char*>]':
> ../../../boost/python/detail/caller.hpp:199:   instantiated from
> 'PyObject* boost::python::detail::caller_arity<2u>::impl<F, Policies,
> Sig>::operator()(PyObject*, PyObject*) [with F = FILE* (*)(const char*,
> const char*), Policies = boost::python::default_call_policies, Sig =
> boost::mpl::vector3<FILE*, const char*, const char*>]'
> ../../../boost/python/object/py_function.hpp:38:   instantiated from
> 'PyObject*
> boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*,
> PyObject*) [with Caller = boost::python::detail::caller<FILE* (*)(const
> char*, const char*), boost::python::default_call_policies,
> boost::mpl::vector3<FILE*, const char*, const char*> >]'
> bindings2.cpp:718:   instantiated from here
> ../../../boost/python/detail/invoke.hpp:75: error: no match for call to
> '(const
> boost::python::detail::specify_a_return_value_policy_to_wrap_functions_returning<FILE*>)
> (FILE*)'
>
>     "g++"  -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC
> -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_DYNAMIC_LIB  -I"../../.."
> -I"/usr/include/python2.4" -c -o "../../../bin.v2/libs/python/opennurbs/gcc-
> 4.1.1/debug/bindings2.o" "bindings2.cpp"
>
> ...failed gcc.compile.c++ ../../../bin.v2/libs/python/opennurbs/gcc-4.1.1
> /debug/bindings2.o...
> ...skipped <p../../../bin.v2/libs/python/opennurbs/gcc-4.1.1/debug>
> opennurbs.so for lack of <p../../../bin.v2/libs/python/opennurbs/gcc-4.1.1
> /debug>bindings2.o...
> ...failed updating 1 target...
> ...skipped 1 target...
> h F = FILE* (*)(const char*, const char*), Policies =
> boost::python::default_call_policies, Sig = boost::mpl::vector3<FILE*, const
> char*, const char*>]'
> ../../../boost/python/object/py_function.hpp:38:   instantiated from
> 'PyObject*
> boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*,
> PyObject*) [with Caller = boost::python::detail::caller<FILE* (*)(const
> char*, const char*), boost::python::default_call_policies,
> boost::mpl::vector3<FILE*, const char*, const char*> >]'
> bindings2.cpp:718:   instantiated from here
> ../../../boost/python/detail/invoke.hpp:75: error: no match for call to
> '(const
> boost::python::detail::specify_a_return_value_policy_to_wrap_functions_returning<FILE*>)
> (FILE*)'
>
>     "g++"  -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC
> -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_DYNAMIC_LIB  -I"../../.."
> -I"/usr/include/python2.4" -c -o "../../../bin.v2/libs/python/opennurbs/gcc-
> 4.1.1/debug/bindings2.o" "bindings2.cpp"
>
> ...failed gcc.compile.c++ ../../../bin.v2/libs/python/opennurbs/gcc-4.1.1
> /debug/bindings2.o...
> ...skipped <p../../../bin.v2/libs/python/opennurbs/gcc-4.1.1/debug>
> opennurbs.so for lack of <p../../../bin.v2/libs/python/opennurbs/gcc-4.1.1
> /debug>bindings2.o...
> ...failed updating 1 target...
> ...skipped 1 target...



-Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070129/59744ca4/attachment.htm>


More information about the Cplusplus-sig mailing list