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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
