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"
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