Re: [pygccxml-development] Exceptions and Multi-Module Development
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2011-03-08 05:16:21
|
On Tue, Mar 8, 2011 at 6:30 AM, Scott Sturdivant <sc...@bi...> wrote: > Hi Roman, Good morning. > Thanks, I was not aware about the dlopen flags. Still not entirely sure > what they do, but preliminary investigation indicates that they solve the > problem. > Indeed, I was planning to create my __init__.py and file structure layout > such that this would be a common exception handler that my other extensions > could put into their init files something along the lines of "from > MyPkg.common import myexceptions". What I had provided as the example was > just a small 'quick and dirty' way to demonstrate the problem. > I am curious as to why I need the flags on one machine but not the other, > but like you say, gcc is certainly different (one is a modern, up to date > linux distribution, the other is an antiquated red hat enterprise 5 box). Boost.Python contains registry of classes (more-or-less), in case of multi-module development there should be only 1 instance of it, otherwise the conversion will not work. The flags, you used for dlopen( the function which is called by Python t load shared library ), makes this happen. > Thank you for your help! So far it's looking good. You are welcome. |