• 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: Query regarding dynamic library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Query regarding dynamic library


  • Subject: Re: Query regarding dynamic library
  • From: Alastair Houghton <email@hidden>
  • Date: Mon, 10 Dec 2007 15:39:49 +0000

On 10 Dec 2007, at 15:27, parag vibhute wrote:

Thanks for reply.

From ur writeup, I understood that in order to load library at runtime, dynamic loader needs to get address of function. With dlopen, we can only get address of C function. Now in order to get address of C++ class member function at runtime, only way is to access its address through virtual table. For that, we require to declare C++ class member public function as virtual. And you are right, it is only required when we try to use dynamic library at run time. If we load dynamic library at launch time of application, then linker keeps reference to non-virtual C++ class member function in executable bcoz of which we successfully run of application which is dependant on dynamic library. I hope I am right, am I?

Essentially, yes.

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) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Query regarding dynamic library (From: "parag vibhute" <email@hidden>)
 >Re: Query regarding dynamic library (From: Alastair Houghton <email@hidden>)
 >Re: Query regarding dynamic library (From: "parag vibhute" <email@hidden>)

  • Prev by Date: Re: How to make a program look for dylibs other than /usr/local/lib?
  • Next by Date: Re: How to make a program look for dylibs other than /usr/local/lib?
  • Previous by thread: Re: Query regarding dynamic library
  • Next by thread: Best way to report UI hangs?
  • Index(es):
    • Date
    • Thread