User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)
james tittle wrote:
On Dec 14, 2004, at 12:19 PM, Thomas DEGRIS wrote:
For a more general point of view, is MacOSX able to load multiple
libraries defining the same symbol ? If yes, do you know projects
(using libtools and automake) that use this method ?
...I'm having some problems with this, too: we use NSLinkModule() for
our bundle loading...when you use NSLINKMODULE_OPTION_PRIVATE, multiple
libraries defining the same (global) symbol can be loaded because each
module has it's own "namespace"...unfortunately, this made it impossible
(or rather, I haven't found a way yet) to call functions from other
loaded modules...
static int NSMakePrivateModulePublic(NSModule module)
{
static int (*p) (NSModule module) = 0;
if (!p)
_dyld_func_lookup("__dyld_NSMakePrivateModulePublic", &p);
return p(module);
}
Don't bet the farm on it working on any future OS.