[Boost-bugs] [Boost C++ Libraries] #13527: Boost 1.67.0 - Cannot link to boost_pythonPY_MAJOR_VERSIONPY_MINOR_VERSION...

Subject: [Boost-bugs] [Boost C++ Libraries] #13527: Boost 1.67.0 - Cannot link to boost_pythonPY_MAJOR_VERSIONPY_MINOR_VERSION...
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-04-18 03:05:21


#13527: Boost 1.67.0 - Cannot link to
boost_pythonPY_MAJOR_VERSIONPY_MINOR_VERSION...
------------------------------+---------------------
 Reporter: toby.case@… | Owner: (none)
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.67.0 | Severity: Problem
 Keywords: python, link |
------------------------------+---------------------
 Cannot link to boost_python correctly. Using MSVC 2015 Update 3,
 boost_1_67_0\boost\python\detail\config.hpp line 108 does not expand as
 intended:

 (line 108) #define BOOST_LIB_NAME
 boost_python##PY_MAJOR_VERSION##PY_MINOR_VERSION

 This line expands to
 "boost_pythonPY_MAJOR_VERSIONPY_MINOR_VERSION(...).lib", which results in
 a linking error since the library is named "boost_python36(...).lib"

 My Python distribution is Anaconda 5.1 and patchlevel.h has:

 (line 19) #define PY_MAJOR_VERSION 3

 (line 20) #define PY_MINOR_VERSION 6

 Similarly, one will have difficulty with
 boost_1_67_0\boost\python\numpy\config.hpp line 64.

 I tried repeatedly to make the preprocessor directives work as intended
 but I cannot quite figure it out. I wish I could find where the library
 name is generated for the build, not just the link.

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13527>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-04-18 03:11:26 UTC