• 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
mach-o shared library entry points
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mach-o shared library entry points


  • Subject: mach-o shared library entry points
  • From: Brian Greenstone <email@hidden>
  • Date: Sun, 30 May 2004 14:58:47 -0500

Does anyone know if Mach-o shared libraries have a "__LinkerFirstTime" function like CFM shared libraries do? For example, in CFM I would have something like this:

OSErr __LinkerFirstTime(CFragInitBlock *bPtr)
{
if (bPtr->fragLocator.where != kDataForkCFragLocator)
return mFulErr;

gSharedLibSpec = *bPtr->fragLocator.u.onDisk.fileSpec; // get the FSSpec of this shared lib

return(noErr);
}


This function would automatically get called the first time my shared library gets loaded.

With Xcode and Mach-o I cannot determine if such a similar thing exists. If so, how to I set it up in Xcode?

Thanks,

-Brian


__________________________________________________________ Brian Greenstone President & CEO email@hidden Pangea Software, Inc. http://www.pangeasoft.net 12405 John Simpson Ct. voice/fax: (512)266-9991 Austin, TX 78732 __________________________________________________________ _______________________________________________ xcode-users mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users Do not post admin requests to the list. They will be ignored.


  • Prev by Date: xCode 1.2 debugger cough
  • Next by Date: Re: Editor is really buggy
  • Previous by thread: xCode 1.2 debugger cough
  • Next by thread: mach-o shared library entry points
  • Index(es):
    • Date
    • Thread