Hi,

I've also had problems using dynamic casts with Xerces linked code.
I still think that it is because my version of Xerces was compiled
with gcc 2.95.2 while I compile locally with 2.96.  Your example 
still works if I compile it with 2.95.2 but fails just as you
mention when I compile the test with 2.96.  To really test, I'll
need to compile xerces with 2.96.

Since vtable layouts change between gcc versions, I can understand
the casting problems.  ( Don't start me on the evils of COM. )

Check your version of libxerces-c* to see which gcc was used to build
it.  ( Is there a better way than opening it with xemacs and searching
for the string "libstdc"? )

Scott

San Lin wrote:
> 
> We are experiencing a problem when using xerces and dynamic_cast.
> 
> The problem happens on a RedHat (7.1) Linux kernal 2.4 that has a gnu gcc
> with the library
> libstdc++-3-libc6.2-2-2.10.0.a libstdc++-3-libc6.2-2-2.10.0.so
> 
> An help is appreciated.
> 
> san
> 

<snip code>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to