[C++-sig] ImportError: dynamic module does not define init function
Simon Pickles
sipickles at hotmail.com
Thu Aug 14 17:55:19 CEST 2008
Hi,
Sometimes I come across this error when I try to import a library:
ImportError: dynamic module does not define init function
(initHybridBulletObject)
What exactly does it mean, and how can I fix this?
My code looks like this, and compiles with bjam:
class CHybridBulletObject
{ .... }
BOOST_PYTHON_MODULE(pyboost)
{
using namespace boost::python;
class_<CHybridBulletObject>("HybridBulletObject", init<std::string>())
.def("GetName", &CHybridBulletObject::GetName)
;
}
Thanks for any advice
Simon
--
Linux User# 424693
More information about the Cplusplus-sig
mailing list