• 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: Brian Greenstone <email@hidden>
  • Date: Mon, 31 May 2004 08:14:44 -0500

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?


Thanks,

-B


On May 31, 2004, at 1:41 AM, boga wrote:

    mach_header* header = 0;
    header = _mh_dylib_header;

__________________________________________________________
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.


  • Follow-Ups:
    • Re: mach-o shared library entry points
      • From: Chris Ridd <email@hidden>
References: 
 >mach-o shared library entry points (From: boga <email@hidden>)

  • Prev by Date: Re: Subprojects
  • Next by Date: Including resources with a shared library
  • Previous by thread: mach-o shared library entry points
  • Next by thread: Re: mach-o shared library entry points
  • Index(es):
    • Date
    • Thread