[C++-sig] dynamic linking in Linux

2010-07-23 Thread Jim Bosch
I've just run into the "wontfix" problem detailed here: https://svn.boost.org/trac/boost/ticket/3210 Essentially, shared information held in one module (such as RTTI stuff needed for dynamic cast) isn't available to another module, leading to segfaults. I got the impression from reading the

Re: [C++-sig] dynamic linking in Linux

2010-07-23 Thread Niall Douglas
On 23 Jul 2010 at 0:08, Jim Bosch wrote: > I've just run into the "wontfix" problem detailed here: > > https://svn.boost.org/trac/boost/ticket/3210 > > Essentially, shared information held in one module (such as RTTI stuff > needed for dynamic cast) isn't available to another module, leading to

Re: [C++-sig] dynamic linking in Linux

2010-07-23 Thread Stefan Seefeld
On 07/23/2010 09:35 AM, Niall Douglas wrote: I would even go so far as to say that RTLD_LOCAL needs deprecating in GNU libc. That would open the door for all sorts of ABI issues (symbol collisions resulting in the wrong objects being looked up, etc.). I don't think making symbols visible glo

Re: [C++-sig] dynamic linking in Linux

2010-07-23 Thread Niall Douglas
On 23 Jul 2010 at 9:49, Stefan Seefeld wrote: > On 07/23/2010 09:35 AM, Niall Douglas wrote: > > I would even go so far as to say that RTLD_LOCAL > > needs deprecating in GNU libc. > > That would open the door for all sorts of ABI issues (symbol collisions > resulting in the wrong objects bein

Re: [C++-sig] dynamic linking in Linux

2010-07-23 Thread Jim Bosch
On 07/23/2010 12:08 AM, Jim Bosch wrote: I've just run into the "wontfix" problem detailed here: https://svn.boost.org/trac/boost/ticket/3210 Essentially, shared information held in one module (such as RTTI stuff needed for dynamic cast) isn't available to another module, leading to segfaults.

[C++-sig] How to derive from an abstract base class

2010-07-23 Thread Lutz Maibaum
Dear all, I am totally new to Boost.Python, and I am going through the tutorial to get up to speed. I apologize if this is a very obvious question. Imagine I have a base class in C++ that I want to derive from both in C++ and in Python. The following code works wonderfully well: #include usin

Re: [C++-sig] How to derive from an abstract base class

2010-07-23 Thread Jim Bosch
On 07/23/2010 03:09 PM, Lutz Maibaum wrote: Dear all, I am totally new to Boost.Python, and I am going through the tutorial to get up to speed. I apologize if this is a very obvious question. class Base { public: virtual int f() = 0; }; class Derived : public Base { public: int f() {

Re: [C++-sig] How to derive from an abstract base class

2010-07-23 Thread Lutz Maibaum
On Jul 23, 2010, at 3:55 PM, Jim Bosch wrote: > Try this: > > BOOST_PYTHON_MODULE(foo) { >class_("Base") > .def("f", pure_virtual(&Base::f)); >class_ > ("Derived") > .def("f",&Derived::f); >def("func", func, "Calls the method f of its argument"); > } > > (just swap the ord

[C++-sig] Help with Jamroot file

2010-07-23 Thread Filipe M. S. de Campos
Hello! I'm writing a wrapper of a c++ program that uses OpenCVlibrary. I think I have to add some information to the Jamroot file to make bjam import opencv headers and compile the wrapper successfully. But I couldn't find the right command and location in Jam