On Tuesday 07 February 2006 06:26 pm, QH Wang wrote:
> Mike Adolf wrote:
> >I have started using Qt (on Mandriva 2006) and it seems that g++ is now
> >issuing more warning messages. In particular, Qt generates classes
> >containing virtual methods without making a virtual destructor. This
> > causes a long list of warning messages. Does anyone know what
> > environment compiler flag I can set to turn off a given warning.
> >
> >Mike
> >____________________________________________________
> >Want to buy your Pack or Services from Mandriva?
> >Go to http://store.mandriva.com
> >Join the Club : http://www.mandrivaclub.com
> >____________________________________________________
>
> I don't have any problem when compiling my qt applications (QT 3.2.3) on
> 10.0. I directly use the Makefile QT generates, maybe add some libraries
> if necessary manully. Can you run the QT examples correctly?
>
> Q.H.
They are just warning messages. Examples run fine. I think this virtual
destructor warning is something new with g++ 4.0 and I am using 4.0.1.
I went to the qt-interest mail list, as suggested in another reply, and there
were several discussions concerning this problem. For now I will enter
QMAKE_CXXFLAGS_WARN_ON += -Wno-non-virtual-dtor
in each .pro file to silence the warning.
Thanks, Mike
____________________________________________________
Want to buy your Pack or Services from Mandriva?
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________