• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
HELP: dynamic_cast not works for shared lib.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: kexts built with XCode 2.1 & 2.2
  • Next by Date: Re: xCode not finding header files of included frameworks
  • Previous by thread: kexts built with XCode 2.1 & 2.2
  • Next by thread: Re: xCode not finding header files of included frameworks
  • Index(es):
    • Date
    • Thread