I've just noticed that having done a clean and reconfigure, the source files still contain hasHeightForWidth method in the base class, and the subclass still doesn't provide a definition of it. This means the VTable of the derived class will still contain an entry for hasHeightForWidth.
The only way this will not be a problem is if QtGui.lib contains an entry for the hasHeightForWidth? On Wed, Apr 28, 2010 at 12:57 PM, Jack Wootton <[email protected]>wrote: > OK, thank you, I have cleaned and reconfigured my environment. Hoefully it > will build this time. > > On Wed, Apr 28, 2010 at 12:08 PM, Thiago Macieira < > [email protected]> wrote: > >> Em Quarta-feira 28 Abril 2010, às 12:45:36, ext Jack Wootton escreveu: >> > mwldsym2.exe: Undefined symbol: 'bool >> > QWidgetPrivate::hasHeightForWidth(void) const >> > (?hasheightforwi...@qwidgetprivate@@UBE_NXZ)' mwldsym2.exe: referenced >> > from 'const QSvgWidgetPrivate::`vftable' (??_7QSvgWidgetPrivate@@6...@~)' >> in >> > qsvgwidget.o >> > >> > I assume this means the linker cannot resolve the symbol used in >> > QSvgWidgetPrivate's VTable for the virtual method hasHeightForWidth() >> > >> > I opened QtGui.lib in an editor and did a quick string search for >> > 'hasHeightForWidth', while I did find values, none of them were for the >> > class QWidgetPrivate. Could this be the cause of the problem or have I >> > misunderstood something? Can anyone provide any assistance with this? >> >> Yes, you understood it correctly. >> >> You're facing an issue where QSvgWidgetPrivate was compiled when >> QWidgetPrivate had hasHeightForWidth, so it references that virtual >> function >> in its vtable. But QWidgetPrivate no longer contains that function (it was >> removed in change 42fc3d36260c409918431c1fc058ee2d10f6c147). >> >> This error cannot happen in a clean build. Please clean up your build and >> try >> again. Also ensure that you don't have an older version of Qt lying around >> with old headers. >> >> Note that running "make install" in a Qt build not meant for installation >> will >> overwrite the forwarding headers in include. You may want to nuke your >> include >> and reconfigure Qt too. >> >> -- >> Thiago Macieira - thiago.macieira (AT) nokia.com >> Senior Product Manager - Nokia, Qt Development Frameworks >> Sandakerveien 116, NO-0402 Oslo, Norway >> >> Please don't send me .pptx -- prefer .odp or .ppt >> >> _______________________________________________ >> Qt4-preview-feedback mailing list >> [email protected] >> http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback >> >> > > > -- > Regards > Jack > -- Regards Jack
_______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
