This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: C++, dlopen() and undefined __pure_virtual
- From: Daniel Jacobowitz <drow at false dot org>
- To: Banibrata Dutta <dutta at india dot hp dot com>
- Cc: "'H. J. Lu'" <hjl at lucon dot org>, binutils at sources dot redhat dot com
- Date: Fri, 23 Apr 2004 12:02:17 -0400
- Subject: Re: C++, dlopen() and undefined __pure_virtual
- References: <20040423155829.GA364@lucon.org> <008201c4294c$2ae858e0$c0714c0f@nt13192>
On Fri, Apr 23, 2004 at 09:30:58PM +0530, Banibrata Dutta wrote:
> Hi H.J.:
>
> I am certainly running Linux (actually RH AS-2.1).
> I think the "ld" would work fine because what i am doing is just
> liking the objects in to create the shared library. Infact I remember
> having tested the process of ".so" creation using ld previously.
> The problem, I feel is elsewhere...
>
> Thanks for the quick response.
No, HJ is right. You can not use ld to link shared libraries and
expect things to work correctly. You're missing options and extra code
that g++ would add to the shared library - including __pure_virtual.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer