• 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: Symbol Sharing between Dylibs (and how to prevent it)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Symbol Sharing between Dylibs (and how to prevent it)


  • Subject: Re: Symbol Sharing between Dylibs (and how to prevent it)
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 31 Aug 2006 11:23:56 -0700


On Aug 31, 2006, at 11:11 AM, Jonathan Johnson wrote:

On 8/30/06, Jonathan Johnson <email@hidden> wrote:


I have tried a variety of things: all plugins are required to use the

two-level namespace, and I've triple checked this. I've tried a few

pre-link options that I discovered on Google. But in the end, it still

happens.


So, I finally found out how to solve this. It's pretty simple -- don't

use dynamic libraries, but instead use bundles. I always thought the

Bundle option in Xcode generated a bundle structure, but I was wrong

-- it creates a separate type of library, of which can be loaded in

its own private namespace.


Only replying to hopefully save someone else some hair pulling in the

very unlikely event that it will bite someone else. :)


This is because dylibs default to global namespace and bundles (and plugins) default to "two-level namespace."  You can easily set any dylib to two-level namespace.

Chris

 _______________________________________________
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: Symbol Sharing between Dylibs (and how to prevent it)
      • From: "Jonathan Johnson" <email@hidden>
References: 
 >Symbol Sharing between Dylibs (and how to prevent it) (From: "Jonathan Johnson" <email@hidden>)
 >Re: Symbol Sharing between Dylibs (and how to prevent it) (From: "Jonathan Johnson" <email@hidden>)

  • Prev by Date: Re: Symbol Sharing between Dylibs (and how to prevent it)
  • Next by Date: Re: Template trouble
  • Previous by thread: Re: Symbol Sharing between Dylibs (and how to prevent it)
  • Next by thread: Re: Symbol Sharing between Dylibs (and how to prevent it)
  • Index(es):
    • Date
    • Thread