Adam Nielsen <[EMAIL PROTECTED]> writes:

> Now when Main tries to load Plugin using dlopen() it fails, telling me
> RootClass is an undefined symbol.

It doesn't. It tells you that some symbol is undefined, but it is
not the 'RootClass', because there should not be such a symbol in
Main in the first place.

Please post the exact error message you get from dlerror(3).

> I assumed that it would find the
> implementation of RootClass in Main and use that (I thought that was
> what the g++ -rdynamic option was for.)

Yes, that's exactly what '-rdynamic' is for. However, you need
'-rdynamic' when you link Main, *not* when you link the Plugin.

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.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
Help-gplusplus mailing list
Help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to