Re: [C++-sig] Boost Pro Python Version

2009-01-28 Thread David Abrahams
on Wed Jan 28 2009, Cameron Royal wrote: > David Abrahams-3 wrote: >> >> Have you tried the build and test with Boost.Build/bjam as instructed in >> the tutorial? >> > > I had hoped the precompiled binaries would be fine, but it seems not. After > building the latest version of boost myself wi

Re: [C++-sig] Boost Pro Python Version

2009-01-28 Thread Cameron Royal
David Abrahams-3 wrote: > > Have you tried the build and test with Boost.Build/bjam as instructed in > the tutorial? > I had hoped the precompiled binaries would be fine, but it seems not. After building the latest version of boost myself with python 2.5 it seems to be working now. Thanks for

Re: [C++-sig] Calling python virtual function from C++

2009-01-28 Thread David Abrahams
on Wed Jan 28 2009, William MariƩ wrote: > I need to call my testVirtualPure function from C++ side : > BaseCmp* bc = BaseCmp(); > Base* b = Base(); > b->testVirtualPure( bc ); > > But this causes an error : > TypeError: No to_python (by-value) converter found for C++ type: class > BaseCmp Th

[C++-sig] Calling python virtual function from C++

2009-01-28 Thread William MariƩ
Hi, I have a little problem, i can't find a way to call a pure virtual function from C++ on a Python object taking a specific class object as argument : // Base Class for a component class BaseCmp { public: ~BaseCmp() {}; }; // Base class class Base { public: Base() {};

Re: [C++-sig] Boost Pro Python Version

2009-01-28 Thread Marcus Lindblom
Cameron Royal 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 cras