Boost C++ Libraries: Ticket #12756: Getting the error: " undefined reference to `_Py_NoneStruct' " using boost.python https://svn.boost.org/trac10/ticket/12756 <p> Trying to use Boost.Python to wrap some c++ code. After installing boost and building the python libraries I try running it in a working c++ project (all I have done is add the #include &lt;boost_1_63_0/boost/python.hpp&gt; in one of the cpp files and I receive the error " undefined reference to `_Py_NoneStruct' "). I have tried it with building the boost with python 2.7 and 3.4 (using ./bootstrap.sh --with-python-version=X.Y). </p> <p> I have tried on two separate Ubuntu computers. And I receive this same error on both of them. _ </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12756 Trac 1.4.3 Joshua Moser <joshnm7@…> Thu, 12 Jan 2017 22:00:26 GMT attachment set https://svn.boost.org/trac10/ticket/12756 https://svn.boost.org/trac10/ticket/12756 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Files.zip</span> </li> </ul> <p> The c++ class, main.cpp and the .pro file for the QT project. </p> Ticket Kohei Takahashi Sun, 15 Jan 2017 04:01:28 GMT component changed; owner set https://svn.boost.org/trac10/ticket/12756#comment:1 https://svn.boost.org/trac10/ticket/12756#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Ralf W. Grosse-Kunstleve</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">python USE GITHUB</span> </li> </ul> <p> Boost.Python uses <a class="ext-link" href="https://github.com/boostorg/python/issues"><span class="icon">​</span>GitHub Issue</a> for managing issues. </p> Ticket