• 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: C++ RTTI/dynamic_cast across shared module boundaries?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ RTTI/dynamic_cast across shared module boundaries?


  • Subject: Re: C++ RTTI/dynamic_cast across shared module boundaries?
  • From: Zachary Pincus <email@hidden>
  • Date: Sun, 5 Mar 2006 17:24:22 -0800

Python appears to be using:
NSCreateObjectFileImageFromFile and NSLinkImage

http://svn.python.org/view/python/trunk/Python/dynload_next.c? rev=36531&view=markup

It looks like the options passed to NSLinkImage (which, I assume, is where the GLOBAL type flags would go that are passed to dlopen eventually) are hard-coded for Mac Python, so there's the selection of loading bundles globally versus locally is done at compile-time, not at run-time.

I'll take this up with the python folk.

Zach



On Mar 5, 2006, at 4:50 PM, Eric Albert wrote:

On Mar 5, 2006, at 3:59 PM, Zachary Pincus wrote:

I've been asking about this on the python lists, and have just received a discouraging reply. Python extensions on OS X are bundles, not shared libraries, and are not opened with dlopen().

That's odd...if they don't use dlopen, how do they open them? All of the other methods I can think of for dynamically loading code pretty much go through dlopen in the end....


-Eric


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: C++ RTTI/dynamic_cast across shared module boundaries?
      • From: "Peter O'Gorman" <email@hidden>
References: 
 >Re: C++ RTTI/dynamic_cast across shared module boundaries? (From: Zachary Pincus <email@hidden>)
 >Re: C++ RTTI/dynamic_cast across shared module boundaries? (From: Howard Hinnant <email@hidden>)
 >Re: C++ RTTI/dynamic_cast across shared module boundaries? (From: Zachary Pincus <email@hidden>)
 >Re: C++ RTTI/dynamic_cast across shared module boundaries? (From: Eric Albert <email@hidden>)

  • Prev by Date: Re: C++ RTTI/dynamic_cast across shared module boundaries?
  • Next by Date: XCode's text editor
  • Previous by thread: Re: C++ RTTI/dynamic_cast across shared module boundaries?
  • Next by thread: Re: C++ RTTI/dynamic_cast across shared module boundaries?
  • Index(es):
    • Date
    • Thread