Re: [C++-sig] Getting Boost.Python Working on MacOS X

2009-11-25 Thread Randolph Fritz
On 2009-11-23, Martin Hediger wrote: > > I have been trying to get Boost.Python working on my MBP with Mac OS > 10.5, since I need it to compile the chemical modeling software > "AVOGADRO" for modification reasons. There's something wrong with the boost.python test script on Mac OS X; see

Re: [C++-sig] boost python and weak_ptr from a shared_ptr argument

2009-11-25 Thread Ralf W. Grosse-Kunstleve
This is a known problem. Boost.Python builds shared_ptr instances when calling your functions, using a custom deleter. I think internally it just uses regular Python reference counting to manage the lifetime of your KBObject. Unfortunately I don't have a nice suggestion for you. A few years ago

Re: [C++-sig] building modules with MSVC

2009-11-25 Thread Brian O'Kennedy
It's certainly possible. * Create a project in Visual Studio, set the output type to DLL. * Go to Linker->Output and name the DLL as mymodule.pyd (pyd's are just DLLs on Windows). * Set the Additional Library paths to where you keep your boost python stub lib for linking. * You might need to speci

[C++-sig] boost python and weak_ptr from a shared_ptr argument

2009-11-25 Thread Jahn Fuchs
Hello boost python users, I really like boost python but I stumbled in a problem I don't know how to solve, maybe you have an idea: I have a class KnowledgeBase that holds an shared_ptr to an KBObject and also a weak_ptr to an KBObject. If I set the shared_ptr with the set_shared_ptr functi

[C++-sig] building modules with MSVC

2009-11-25 Thread Simon Pickles
Hi, Is it possible to build boost::python modules using MSVC as opposed to bjam? I'd like MSVC to output a pyd of course. Thanks Simon ___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig