• 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: Thu, 13 Dec 2007 12:55:49 +0530

Requirement is to load the dynamic library at runtime which contains non-virtual functions. I know calling of non-virtual functions can be solved if l link that library at compile & so library gets loaded at application launch time but what if I want to load library at runtime.

Ya you & Greg suggested similar kind of thing. Thanks for it. I am thinking to implement either C or C++ wrapper dynamic library which will depend on libopbx.dylib & I will load my dynamic library at runtime which will indirectly load the libopbx.dylib at runtime. Hope I am going in right direction.

The install_name_tool was regarding loading dynamic library at launch time whose install name is different than what I wanted. By ur guidance, that issue is solved.

Thanks,
Palav



On Dec 12, 2007 11:24 PM, Alastair Houghton <email@hidden> wrote:
On 12 Dec 2007, at 17:47, Greg Guerin wrote:

> parag vibhute wrote:
>
>> Greg, can u elaborate this in detail
>
> Sorry, I can't.  I don't have the free time.

It's basically just the same as writing a C wrapper (like in one of my
earlier posts), except that you would write a C++ wrapper instead, with
all virtual methods, and then you'd provide some C API to get a factory
object.

But look, just use install_name_tool.  It's the right solution here,
unless
there's some factor you haven't mentioned.

Kind regards,

Alastair.

--
http://alastairs-place.net





--

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

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

  • Prev by Date: Re: documentation window and "Previous"
  • Next by Date: 64 bit
  • 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