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

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.


References: 
 >Re: mach-o shared library entry points (From: Brian Greenstone <email@hidden>)

  • Prev by Date: Re: Symbolic link & Xcode install
  • Next by Date: Re: Including resources with a shared library
  • Previous by thread: Re: mach-o shared library entry points
  • Next by thread: Re: Hello
  • Index(es):
    • Date
    • Thread