[C++-sig] Boost.Python and python 3.x?
Andrew Ho
andrew.ho at utah.edu
Thu Dec 30 09:04:12 CET 2010
Hi, I'm trying to build Boost.Python to use Python 3.1, however I'm getting
a bunch of errors (missing functions/members, etc.).
I was able to get Boost.Python to compile correctly when using Python 2.6 so
I don't think the problem is in my setup.
I did a search and as far as I can tell there's no support for python 3.x
being built at Boost 1.41, however I haven't found anything for Boost 1.45.
There were references to a GSoC project to fix this, did this ever get
finished? If so, is there something different between the Python 3.x and
Python 2.x jam files that would cause this (other than referencing the
correct includes & libs)?
Here's my jam file for python 3.1 (C:\Python31 contains the source download
of Python 3.1.2, built for Windows x64 release platforms):
using msvc ;
import os ;
using python : 3.1
: # sources
C:\\Python31
: # requirements
<include>C:\\Python31\\Include
<include>C:\\Python31\\PC
<library-path>C:\\Python31\\PCBuild\\amd64
;
And I'm compile with this command:
bjam link=static threading=multi address-model=64 variant=release
toolset=msvc-9.0 -a --with-python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20101230/768130fb/attachment.html>
More information about the Cplusplus-sig
mailing list