Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2008-08-21 21:03:58


on Tue Aug 19 2008, antonyc <ac-AT-redvision.co.uk> wrote:

> I've just started this morning with boost::python and have been struggling
> all day to get the basic
> http://www.boost.org/doc/libs/1_35_0/libs/python/doc/tutorial/doc/html/python/exposing.html
> 'exposing classes' doc/tutorial: to link correctly under gcc 4.1.2. I
> would greatly appreciate any help as I'm sure it's probably something simple
> and I'm pretty much at a loss at the moment.
>
> So the source file compiles and the shared object appears to link ok
> however when I try and import the module, python reports the following
> missing symbol:
>
> ImportError: /test/BoostPython/hello.so: undefined symbol:
> _ZN5boost6python9converter8registry6insertEPFPvP7_objectEPFvS5_PNS1_30rvalue_from_python_stage1_dataEENS0_9type_infoE
>
> de-mangled courtesy of c++filt:
>
> boost::python::converter::registry::insert(void* (*)(_object*), void
> (*)(_object*, boost::python::converter::rvalue_from_python_stage1_data*),
> boost::python::type_info)

It looks like the Boost.Python headers you are compiling against are
from an older version of the library than the binary you are linking
against.

HTH,

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net