On Friday 21 March 2008 01:40:55 Pavel Sanda wrote: > José Matos wrote: > > In the line above I replaced g++ by g++ -E and I have removed what comes > > after the -c (of course). > > > > I send you the result attached. It seems that the compiler is right > > bad_cast is nowhere to be found... > > bad_cast come from > /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/typeinfo do you have > this file in your gcc 4.3.0 ?
And here it comes from /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/typeinfo so it should be from /usr/include/c++/4.3.0/typeinfo. I added #include <typeinfo> and now it works, but I am not sure if this is necessary.... > also this include show somewhere around include strings like > /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.tcc > can't be some locale things in play? > > pavel -- José Abílio