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 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

[C++-sig] Wrapping std::vector with boost::python::list

2011-08-09 Thread fjanoos
Hello, I'm new to boost::python and was having trouble wrapping a C++ function of the form void FindVCs(int vId, vector& vcs); Here vcs is allocated in the caller and populated by FindVCs. Initially, I considered wrapping it something like this: boost::python::list* FindVCs_wrap(int

[C++-sig] Wrapping std::vector with boost::python::list

2011-08-09 Thread fjanoos
Hello, I'm new to boost::python and was having trouble wrapping a C++ function of the form void FindVCs(int vId, vector& vcs); Here vcs is allocated in the caller and populated by FindVCs. Initially, I considered wrapping it something like this: boost::python::list* FindVCs_wrap(int vi