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
The undefined symbol is
boost::python::detail::init_module(char const*, void (*)())
not
boost::python::detail::init_module(PyModuleDef&, void (*)())
on http://www.boost.org/doc/libs/1_46_1/boost/python/module_init.hpp I see that the method signature has changed to the latter one in Python 3.
You should make sure that PY_VERSION_HEX
is set correctly when the boost python headers are processed.
On my system, I see that this is e.g. defined in /usr/include/python3.1/patchlevel.h
(but I had to install the python 3.1 development package first)