[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Re-useing sip modules
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2004-07-27 12:17:22
Message-ID: 200407271317.22204.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

On Wednesday 21 July 2004 3:14 am, Patrick wrote:
> 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.

I assume that you mean that the sub-module depends on the pkaudio library as 
well as the pkaudio module.

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

Yes.

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic