Re: How to make a program look for dylibs other than /usr/local/lib?
Re: How to make a program look for dylibs other than /usr/local/lib?
- Subject: Re: How to make a program look for dylibs other than /usr/local/lib?
- From: "parag vibhute" <email@hidden>
- Date: Wed, 12 Dec 2007 13:02:38 +0530
In same thread of discussion, for accessing non-virtual public functions of C++ class of dynamic library which will be loaded at runtime, Greg suggested following way:
Another possible strategy is to wrap the libopbx.dylib
's non-
virtualclasses in your own virtualized wrapper library, with libopbx.dylib linked
as a dependent library of the wrapper. Then your main app would weak-link
to your
virtual classes in the wrapper, and your virtualized wrapper would
"hard-link" to libopbx.dylib. This would free your main program from
direct dependence on libopbx.dylib, by moving that dependence to an
intermediary. This is essentially the Proxy design pattern.
<
http://en.wikipedia.org/wiki/Proxy_design_pattern>
I know requirement of declaring C++ class public member function as Virtual for accessing them (explained by Alastair in other thread of discussion), but still searching that is there any way exist for accessing non-virtual public functions from runtime loaded library.
Greg, can u elaborate this in detail or is there any other way exist?
Thanks,
Palav
On Dec 11, 2007 10:41 PM, Alastair Houghton <
email@hidden> wrote:
On 11 Dec 2007, at 17:07, Nick Zitzmann wrote:
> On Dec 11, 2007, at 4:46 AM, Alastair Houghton wrote:
>
>> AFAIR, @executable_path was introduced in 10.3, so yes.
>
> <PEDANTIC>@executable_path was introduced in 10.0 and may have been
> in OpenStep for all I know. It's @loader_path that was introduced in
> 10.4.</PEDANTIC>
:-) And here's me thinking that I couldn't use it on 10.2. Still, we
don't support
10.2 now anyway.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (
email@hidden
This email sent to
email@hidden
--
There are many things in your life that will catch your eye but only a few will catch your heart....pursue those'.
_______________________________________________
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