My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 3: Problem with linking to python in debug
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Mar 2014


 
Reported by forde...@gmail.com, Feb 18, 2014
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.
numpy_boost.hpp.patch
487 bytes   Download
Mar 11, 2014
Project Member #1 mdb...@gmail.com
Fixed in r12
Status: Fixed

Powered by Google Project Hosting