DragonFly users List (threaded) for 2005-03
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: 'Base class' shared libraries in C?
On Tue, Mar 29, 2005 at 02:50:04PM +0100, Jonathon McKitrick wrote:
>
> Hi all,
>
> I am trying to implement some C++ functionality in C.
>
> Suppose I have several libraries that share behavior and properties, such as
> version, working directory, and so on. I want other libraries to extend
> this behavior without having to duplicate any code. For instance:
[...]
>
> I want the derived modules to link with the base library, so that my
> application can link with only the derived modules and still be able to call
> the base functions without having to link to that library or call 'wrapper'
> functions in the derived modules.
>
> Is there a way to do this?
You might want to look at the kobj framework in the kernel.
Joerg
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]