Re: mach-o shared library entry points
Re: mach-o shared library entry points
- Subject: Re: mach-o shared library entry points
- From: Chris Ridd <email@hidden>
- Date: Mon, 31 May 2004 15:06:34 +0100
On 31/5/04 2:14 pm, Brian Greenstone <email@hidden> wrote:
> Thanks, for the info! I also found that you can set the entry point
> with a pragma like this:
>
> #pragma CALL_ON_LOAD InitMachOLibrary
>
> void InitMachOLibrary ()
> {
>
>
> }
>
>
> However, I cannot seem to find where mach_header and _mh_dylib_header
> are defined. I'm including the mach-o ldsysms.h and dyld.h headers,
> but those don't help. Whenever I compile I get a mach_header
> undeclared error. I couldn't find any mention of it on Apple's dev
> site either. Anyone know where those types are defined?
<mach-o/loader.h> defines struct mach_header, which should help you include
<mach-o/ldsyms.h> successfully.
Cheers,
Chris
_______________________________________________
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.