help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undefined symbol when loading g++ created library


From: Paul Pluzhnikov
Subject: Re: Undefined symbol when loading g++ created library
Date: Sat, 26 Nov 2005 23:00:22 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

Adam Nielsen <address@hidden> writes:

> Well at any rate it's the mangled version of RootClass:
>
>   plugin.so: undefined symbol: _ZN8RootClassC2Ev

Hmm. Are you (mis)typing this instead of cut/pasting?

The '_ZN8RootClassC2Ev' is not a valid mangled symbol at all;
the '_ZN9RootClassC2Ev' is "RootClass::RootClass[not-in-charge]()"
constructor.

>> If that's what you did, please try to construct a trivial compilable
>> example, and provide *exact* compile and link lines and gcc and OS
>> versions.
>
> If this is unexpected behaviour I'll see if I can do that.

Yes, this is unexpected.

You should begin by running 'nm Main | grep RootClass'
and verifying that there is a definition of this constructor in
Main to begin with (if there isn't, -rdynamic wouldn't make a
difference -- you can't export what's not defined).

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]