• 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: Compiling Shared Objects/Libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling Shared Objects/Libraries


  • Subject: Re: Compiling Shared Objects/Libraries
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 29 Jan 2002 13:41:31 -0800

On Tuesday, January 29, 2002, at 12:33 PM, Richard Schreyer wrote:

I'm looking through dyld.h, and no single function seems to be jumping out at me saying that it's equivalent to dlopen().

From what I'm seeing, I guess that I have to create a NSObjectFileImage to represent the .dylib file, and then use NSLinkModule() (can I use anything for the moduleName string?) to load the library?

Finally, it appears that NSLookupAndBindSymbol() is used instead of dlsym().

Is all of this right, and is there anyplace I can find some real documentation for dyld.h? It's barely mentioned on developer.apple.com.

man 3 NSModule

will give you the documentation for these functions.

If you are creating the executable you are trying to load, you may find it simpler to bundle it and use CFBundle to load it. The dyld functions will give you more precise control over various options, at the expense of a certain increase in complexity.

Douglas Davidson


References: 
 >Re: Compiling Shared Objects/Libraries (From: Richard Schreyer <email@hidden>)

  • Prev by Date: status bar
  • Next by Date: drawInRect in Java
  • Previous by thread: Re: Compiling Shared Objects/Libraries
  • Next by thread: status bar
  • Index(es):
    • Date
    • Thread