help-gplusplus
[Top][All Lists]
Advanced

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

Re: dynamic_cast returns NULL if argument passed from dynamic_library


From: Paul Pluzhnikov
Subject: Re: dynamic_cast returns NULL if argument passed from dynamic_library
Date: 30 Apr 2004 20:04:03 -0700
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

"David" <dpllpd@yahoo.com> writes:

> I'm trying to use dynamic_cast on an object passed from the .so loaded with
> dlopen. I do everything that http://gcc.gnu.org/faq.html#dso suggests. It
> still fails. It works with MSVC++ 6.0 and if the code is directly linked
> against the library.

I've constructed a trivial test case, and it worked fine on Linux
with g++-2.95.3 and g++-3.4.0

> Any suggestions would be appreciated.

Make a test case that fails, post it (and the command line used to
build it, the OS and the revision of g++).

*Then* we can help you (maybe :-)

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]