HELP: dynamic_cast not works for shared lib.
HELP: dynamic_cast not works for shared lib.
- Subject: HELP: dynamic_cast not works for shared lib.
- From: Ruslan Zasukhin <email@hidden>
- Date: Fri, 04 Nov 2005 00:27:17 +0200
- Thread-topic: HELP: dynamic_cast not works for shared lib.
Hi All,
Please let me know that I already have hear about issue that
* GCC 3.2+ use pointer comparison for typy info objects
* and I have read this http://gcc.gnu.org/faq.html#dso
We have in projects few dlls, but I have narrow down to next simple
configuration:
vshared.dll (class A, class B) and class C child of both.
test.exe (links to vshared)
In the test I have simple
A* pA = new C;
B* pb = dynamic_cast<B*>( pa )
Last line gives pb NULL.
How to fix this?
It is obvious GCC "gifts",
because our code works perfectly in Visual and CodeWarrior
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden