Opened 6 years ago

Last modified 6 years ago

#12756 new Bugs

Getting the error: " undefined reference to `_Py_NoneStruct' " using boost.python

Reported by: Joshua Moser <joshnm7@…> Owned by: Ralf W. Grosse-Kunstleve
Milestone: To Be Determined Component: python USE GITHUB
Version: Boost 1.63.0 Severity: Problem
Keywords: Cc:

Description

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 <boost_1_63_0/boost/python.hpp> 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).

I have tried on two separate Ubuntu computers. And I receive this same error on both of them. _

Attachments (1)

Files.zip (1.8 KB ) - added by Joshua Moser <joshnm7@…> 6 years ago.
The c++ class, main.cpp and the .pro file for the QT project.

Download all attachments as: .zip

Change History (2)

by Joshua Moser <joshnm7@…>, 6 years ago

Attachment: Files.zip added

The c++ class, main.cpp and the .pro file for the QT project.

comment:1 by Kohei Takahashi, 6 years ago

Component: Nonepython USE GITHUB
Owner: set to Ralf W. Grosse-Kunstleve

Boost.Python uses GitHub Issue for managing issues.

Note: See TracTickets for help on using tickets.