[lug] g++ question: dynamic casts?
Tom Tromey
tromey at redhat.com
Wed Jan 30 22:52:23 MST 2002
>>>>> "Scott" == Scott A Herod <herod at interact-tv.com> writes:
Scott> I know there are some g++ experts around. I've got code that
Scott> uses dynamic casts on objects retrieved from a library. The
Scott> library was built with gcc 2.95.2. My code is built with 2.96.
Scott> The dynamic cast dies; not returns null but dies. A static
Scott> cast works and if I build with 2.95.2 the dynamic cast works.
Scott> Should I be surprised and upset?
No. These releases aren't binary compatible. That is, the C++ ABI
changed.
Tom
More information about the LUG
mailing list