|
Boost Users : |
From: Keith MacDonald (boost_at_[hidden])
Date: 2005-04-21 10:06:28
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_at_[hidden]> wrote in message
news:d48dqs$6pd$1_at_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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net