• 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: Fri, 14 Dec 2007 13:19:07 +0530

This is just to inform you that I created wrapper dynamic library which exports C functions & those functions internally calls non-virtual functions of libopbx.dylib. So it seems that issue is solved. Thanks to all who helped me regarding the issue.

Thanks,
Palav

On Dec 13, 2007 12:55 PM, parag vibhute <email@hidden> wrote:
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'.



--

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: Alastair Houghton <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: "parag vibhute" <email@hidden>)

  • Prev by Date: Re: Loading function from a bundle without loading all globals.
  • Next by Date: Re: _GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC nuttiness causing debug build crashes...
  • Previous by thread: Re: How to make a program look for dylibs other than /usr/local/lib?
  • Next by thread: Since Xcode 3.0, ld insists on linking CoreData.framework
  • Index(es):
    • Date
    • Thread