• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shared lib load/unload functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shared lib load/unload functions


  • Subject: Re: Shared lib load/unload functions
  • From: Peter O'Gorman <email@hidden>
  • Date: Fri, 21 Sep 2007 19:32:05 -0500

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

  • Follow-Ups:
    • Re: Shared lib load/unload functions
      • From: "Kyle Sluder" <email@hidden>
References: 
 >Shared lib load/unload functions (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: App crashes when debugging, not in normal execution
  • Next by Date: I'm quite confused...
  • Previous by thread: Shared lib load/unload functions
  • Next by thread: Re: Shared lib load/unload functions
  • Index(es):
    • Date
    • Thread