| Issue 3: | Problem with linking to python in debug | |
| 1 person starred this issue and may be notified of changes. | Back to list |
As of today, numpy_boost.hpp includes Python.h directly. This might sound nice, but has the side-effect of breaking boost::python's ability to link to a release build of Python also when building in debug. A consequence of this is that users will experience a "LINK : fatal error LNK1104: cannot open file 'python27_d.lib'" (or similar) error when attempting to build projects using numpy-boost in debug on windows. This linking problem can be solved by building Python in debug, but this would cause inconsistency problems with boost::python which always links to the release build of Python also in debug. Attached is a patch that solves this problem by replacing "#include <Python.h>" with "#include <boost/python.hpp>" in numpy_boost.hpp.
Mar 11, 2014
Project Member
#1
mdb...@gmail.com
Status:
Fixed
|