mach-o shared library entry points
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.