Re: [Orbit-python-list] Undefined Symbol POAManager_PyObject_Type
Status: Inactive
Brought to you by:
tack
From: <jp...@ar...> - 2001-01-17 18:25:36
|
On Wed, 17 Jan 2001, Jade Meskill wrote: > Ah OK. What the message suggests was what I was going to suggest next, > basically you have to make a library that shares the common bits between > CORBAmodule and PortableServermodule and link them to that > library. This would be the most correct approach anyways IMHO, as it > doesn't rely on patching python at all. If I may chime in here, you may want to look at how pygtk does this -- see gtkmodule.[ch] in pygtk. Basically, one module needs to setup an structure of function pointers to the C functions that are to be made available to other modules. A pointer to this structure is then wrapped in a PyCObject and made available as an attribute of the module or as the return value of a Python callable C function. The problem with creating a shared library and having both modules link against it is that the shared library must then be in LD_LIBRARY_PATH or one of the system shared lib directories, which complicates installation / uninstallation. John ------------------------------------------------------------------------ Archaeopteryx Software, Inc. Wing IDE for Python www.archaeopteryx.com Take Flight! |