Boost C++ Libraries: Ticket #5283: Suspect BOOST_PYTHON_DECL missing from init_module() https://svn.boost.org/trac10/ticket/5283 <p> In the following code, extracted from libs/python/src/module.cpp, I think that "BOOST_PYTHON_DECL" has been omitted from the declaration of init_module(...). It was present in version 1.43 of Boost and without it I get unresolved symbol errors when linking against Boost::Python. </p> <p> In summary, I suspect that the third line in the fragment below should read: </p> <pre class="wiki">BOOST_PYTHON_DECL PyObject* init_module(PyModuleDef&amp; moduledef, void(*init_function)()) </pre><p> My apologies if this has, in fact, been removed deliberately. </p> <pre class="wiki">#if PY_VERSION_HEX &gt;= 0x03000000 PyObject* init_module(PyModuleDef&amp; moduledef, void(*init_function)()) { return init_module_in_scope( PyModule_Create(&amp;moduledef), init_function); } #else namespace { PyMethodDef initial_methods[] = { { 0, 0, 0, 0 } }; } BOOST_PYTHON_DECL PyObject* init_module(char const* name, void(*init_function)()) { return init_module_in_scope( Py_InitModule(const_cast&lt;char*&gt;(name), initial_methods), init_function); } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5283 Trac 1.4.3 Ralf W. Grosse-Kunstleve Thu, 24 Mar 2011 04:16:51 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5283#comment:1 https://svn.boost.org/trac10/ticket/5283#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <hr /> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/70493" title="libs/python/src/module.cpp: bug fix: adding missing BOOST_PYTHON_DECL ...">r70493</a> | rwgk | 2011-03-23 21:10:59 -0700 (Wed, 23 Mar 2011) | 1 line </p> <p> libs/python/src/module.cpp: bug fix: adding missing BOOST_PYTHON_DECL that should have been in rev. 67462, fixes trac issue <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5283" title="#5283: Bugs: Suspect BOOST_PYTHON_DECL missing from init_module() (closed: fixed)">#5283</a> </p> <hr /> Ticket