This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++, dlopen() and undefined __pure_virtual


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]