
21 Apr
2005
21 Apr
'05
3:06 p.m.
Thanks for the suggestion. It results in "error C2065: 'init_hello' : undeclared identifier". I note that the documentation for PyImport_AppendInittab requires it be called before Py_Initialize, but that makes no difference. Is init_hello supposed to be part of BOOST_PYTHON_MODULE's magic? Thanks, Keith MacDonald "Vladimir Prus" <ghost@cs.msu.su> wrote in message news:d48dqs$6pd$1@sea.gmane.org...
I think you need something like:
if (PyImport_AppendInittab("hello", init_hello) == -1) throw std::runtime_error("Failed to add embedded_hello to the interpreter's builtin modules");
after Py_Initialize
- Volodya