[C++-sig] bpl on sun errors

FLETCHER, Shayne, FM Shayne.FLETCHER at rbos.com
Tue Nov 5 15:02:00 CET 2002


Dear All:

I have been trying to compile the v2 boost_python shared library on Solaris
using Sun Workshop 6 (__SUNPRO_CC=0x530) and 7 (__SUNPRO_CC=0x540). I can
report that with a little massaging (right or wrong), most of the source
files compile. The following problem though has stopped me in my tracks:
"object/enum.cpp" produces 

"object/enum.cpp", line 141: Error: Overloading ambiguity between
"boost::python::handle<_typeobject>::handle<boost::python::detail::borrowed<
_typeobject>>(boost::python::detail::borrowed<_typeobject>*)" and
"boost::python::handle<_typeobject>::handle(const
boost::python::handle<_typeobject>&)".
"object/enum.cpp", line 141: Error: Cannot use
boost::python::detail::borrowed<_typeobject>* to initialize
boost::python::handle<_typeobject>.
"object/enum.cpp", line 142: Error: Overloading ambiguity between
"boost::python::handle<_typeobject>::handle<boost::python::detail::borrowed<
_typeobject>>(boost::python::detail::borrowed<_typeobject>*)" and
"boost::python::handle<_typeobject>::handle(const
boost::python::handle<_typeobject>&)".
"object/enum.cpp", line 142: Error: Cannot use
boost::python::detail::borrowed<_typeobject>* to initialize
boost::python::handle<_typeobject>.
"object/enum.cpp", line 188: Error: Cannot cast from
boost::python::api::proxy<boost::python::api::attribute_policies> to
boost::python::extract<boost::python::dict>.
"object/enum.cpp", line 199: Error: Overloading ambiguity between
"boost::python::handle<_typeobject>::handle<boost::python::detail::borrowed<
_typeobject>>(boost::python::detail::borrowed<_typeobject>*)" and
"boost::python::handle<_typeobject>::handle(const
boost::python::handle<_typeobject>&)".
"object/enum.cpp", line 199: Error: Cannot cast from
boost::python::detail::borrowed<_typeobject>* to
boost::python::handle<_typeobject>.
"object/enum.cpp", line 201: Error: Cannot cast from
boost::python::api::proxy<boost::python::api::attribute_policies> to
boost::python::extract<boost::python::dict>.

The statements at lines 141 and 142 giving rise to the first of the
"overloading ambiguity" errors are:

      type_handle metatype(borrowed(&PyType_Type));
      type_handle base(borrowed(&enum_type_object));

Does anyone have any suggestions ?

- Shayne.





********************************************************************
      Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
             Regulated by the Financial Services Authority
********************************************************************




More information about the Cplusplus-sig mailing list