• 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: How to make a program look for dylibs other than /usr/local/lib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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-virtual
classes 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.

Kind regards,

Alastair.

--
http://alastairs-place.net


 _______________________________________________
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

References: 
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: "parag vibhute" <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: Alastair Houghton <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: "parag vibhute" <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: "parag vibhute" <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: Alastair Houghton <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: "parag vibhute" <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: Alastair Houghton <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: Nick Zitzmann <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Encoding of "long string"
  • Next by Date: Guard Malloc in Xcode 2.5
  • Previous by thread: Re: How to make a program look for dylibs other than /usr/local/lib?
  • Next by thread: Re: How to make a program look for dylibs other than /usr/local/lib?
  • Index(es):
    • Date
    • Thread