19 Aug 19:25
boost.python - undefined symbol error
From: antonyc <ac <at> redvision.co.uk>
Subject: boost.python - undefined symbol error
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-08-19 17:26:02 GMT
Subject: boost.python - undefined symbol error
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-08-19 17:26:02 GMT
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) Indeed a search through the boost.python headers yields no such function prototype. Nor does searching the symbols defined in libboost_python-gcc41-mt.so. The closest match I can find in libboost_python-gcc41-mt.so is: boost::python::converter::registry::insert(void* (*)(_object*), void (*)(_object*, boost::python::converter::rvalue_from_python_stage1_data*), boost::python::type_info, _typeobject const* (*)())(Continue reading)
RSS Feed