[C++-sig] Boost Pro Python Version

David Abrahams dave at boostpro.com
Tue Jan 27 13:34:17 CET 2009


on Tue Jan 27 2009, Cameron Royal <cameron-AT-sandboxsoftware.com.au> wrote:

> So I'm having some difficulty getting one of the boost.python tutorial
> examples working. In particular the class with a string constuctor.
>
> http://www.boost.org/doc/libs/1_37_0/libs/python/doc/tutorial/doc/html/python/exposing.html#python.constructors
>
> This exact example crashes for me in Visual Studio 

Have you tried the build and test with Boost.Build/bjam as instructed in
the tutorial?

> with an exception at line
> 75 in <boost/python/detail/invoke.hpp>. I've read a few other forum posts
> and I can only assume there was something wrong with my build / config
> seeing as this seems like a trivial example.
>
> I am using the free boost download (http://www.boostpro.com/products/free)
> for VC9 and Python 2.5. I'm wondering if this is the right version of Python
> for that build? I couldn't find in the download any indication of what
> python version it's expecting, or if it evens matters.

Well, it has to be at least Python 2.2, but otherwise, it should be
fine.


-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com


More information about the Cplusplus-sig mailing list