[PyKDE] Re-useing sip modules

Patrick ajole-1 at gci.net
Tue Jul 27 11:37:01 BST 2004


I've created a sip module called pkaudio that does audio streaming. I want to 
be able to re-use it in subsequent sip modules, but whenever I load the sub 
modules (which depend on pkaudio), the pkaudio lib gets loaded into the 
interpretter twice. 
In a way this makes sense, since I link the pkaudio C++ source into the 
pkaudio module and the dependent sub-module. If I don't link it, I get 
undefined symbols. 

So, how do modules like PyKDE and Qwt keep from loading the qt library twice? 
I think I'm missing a fundamental concept of linking. Would building pkaudio 
as a shared library fix this?

Cheers,
-P




More information about the PyQt mailing list