[C++-sig] extract<> with custom shared pointers

2011-08-05 Thread Holger Brandsmeier
Dear Boost::python experts, I am trying to use a custom shared pointer type instead of boost::shared_pointer, in my case Teuchos::RCP from the Trilinos project. The details of Teuchos::RCP should not matter much here. In any case there is a Doxygen documentation on the Trilinos webpage. For compl

Re: [C++-sig] extract<> with custom shared pointers

2011-08-05 Thread Jim Bosch
On 08/05/2011 11:00 AM, Holger Brandsmeier wrote: Dear Boost::python experts, I am trying to use a custom shared pointer type instead of boost::shared_pointer, in my case Teuchos::RCP from the Trilinos project. The details of Teuchos::RCP should not matter much here. In any case there is a Doxyg

Re: [C++-sig] CMake and getting starting with boost.python

2011-08-05 Thread fjanoos
Dear Braddock, I'm trying to build Python wrappers with Boost for a fairly large C++ project - and most of its configuration is in CMake. Do you have any more information on using Boost Python through cmake. Specifically - i'm interested in configuring cmake to auto-detect (or atleast require) t

Re: [C++-sig] How to import a boost::python dll in windows?

2011-08-05 Thread fjanoos
Hi, I am having a similar problem as the o.p. I was trying to build Python wrappers for the hello_ext project given in the boost tutorial using CMake instead of bjam using the instructions as per http://mail.python.org/pipermail/cplusplus-sig/2007-June/012247.html The setup is Boost 1.47.0, Pytho

Re: [C++-sig] How to import a boost::python dll in windows?

2011-08-05 Thread Jim Bosch
I know next-to-nothing about linking dynamic libraries in Windows, but if I saw a message like that in Linux, I'd check my dynamic linker path to ensure the Boost.Python shared library is in it; any Python module you build is linked against against that library. If the dynamic linker can't fin

Re: [C++-sig] How to import a boost::python dll in windows?

2011-08-05 Thread fjanoos
Hi, The problem was with using the dynamic version of the windows libraries (/MD) - after changing the project settings to use the static libraries (/MT) this worked out just fine. thanks, -firdaus From: Jim Bosch-2 [via Boost] To: fjanoos Sent: Friday, Augu

Re: [C++-sig] CMake and getting starting with boost.python

2011-08-05 Thread Tyler Weston
Try this. I believe the required FindBoost.cmake is standard in the cmake/shared/cmake-x.y/modules. Not all of these options may apply to your build. # # BOOST # set(Boost_USE_STATIC_LIBSOFF) set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_RUNTIME OFF) set(BOOST_ROOT "path/to