Re: Shared lib load/unload functions
Re: Shared lib load/unload functions
- Subject: Re: Shared lib load/unload functions
- From: "Kyle Sluder" <email@hidden>
- Date: Mon, 24 Sep 2007 15:30:05 +0100
More information on using constructor and destructor attributes is
available here:
http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/InitializingFrameworks.html#//apple_ref/doc/uid/20002259-104991
--Kyle Sluder
On 9/22/07, Peter O'Gorman <email@hidden> wrote:
> On Fri, 2007-09-21 at 20:59 +0100, Mark Thomas wrote:
> > Hi,
> > I recently had to add in my shared library, an initialize function, which
> > there seems to be an option for within XCode, however there doesn't seem to
> > be an unload/un-initialize function, which would be required to do the
> > reverse of my initialize function.
> >
> > Is this possible, as I remember back in CFM day's these was possible ?
>
> I'd use gcc's __attribute__(("constructor")) and
> __attribute__(("destructor")) instead of -init.
>
> Peter
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden