Re: Open Framework library : by using the name
Re: Open Framework library : by using the name
- Subject: Re: Open Framework library : by using the name
- From: Michael Ash <email@hidden>
- Date: Wed, 17 Nov 2010 13:29:55 -0500
On Nov 17, 2010, at 6:17 AM, Christiaan Hofman wrote:
> That's not my question. My question is why you don't just link, i.e. why are you calling dlopen yourself?
>
> Anyway, AFAIK you should always use a full path here. dlopen looks for relative paths using the library search paths, but those almost certainly won't point to any place inside frameworks. It should not mater much, because these standard places to install system frameworks (certainly such a basic one) are not gonna change: if they ever do, you can be sure that every single app you would now have on your computer won't work (how likely you think that will be?).
To slightly elaborate, the dynamic linker is going to search for system frameworks by using absolute paths, so you might as well imitate it when using dlopen. You won't be any *worse* off, at least.
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden