13
votes
1answer
647 views

How to define a Python metaclass with Boost.Python?

The Python C API has the PyObject *PyType_Type object, which is equivalent to type in the interpreter. If I want to define a metaclass in C++, how can I set type as one of its bases in Boost.Python? ...
1
vote
1answer
1k views

Undefined boost python symbol: boost::python::detail::init_module

I get an undefined symbol error when trying to import an extension compiled with boost python, and the symbol is one that should be included in the boost library. I am using Boost 1.46.1, Python ...