[Uml-devel] Problems compiling umbrello in kdesdk-3.2.0 on Tru64 UNIX 5.1

Jonathan Riddell jr at jriddell.org
Mon Mar 8 13:49:02 UTC 2004


On Mon, Mar 08, 2004 at 02:16:02PM -0600, Albert Chin wrote:
> I'm trying to build umbrello from the kdesdk-3.2.0 package on Tru64
> UNIX 5.1 with the native C++ compiler and have this error:
> 
> cxx: Error: umlwidget.cpp, line 917: more than one instance of overloaded
>           function "UMLWidget::setFontMetrics" matches the argument list:
>             function "UMLWidget::setFontMetrics(UMLWidget::FontType,
>                       QFontMetrics &)"
>             function "UMLWidget::setFontMetrics(UMLWidget::FontType,
>                       QFontMetrics)"
>             argument types are: (UMLWidget::FontType, QFontMetrics)
>      setFontMetrics(fontType, static_cast<QFontMetrics>(QFontMetrics(m_Font)));
> --------^
> cxx: Error: umlwidget.cpp, line 969: more than one instance of overloaded
>           function "UMLWidget::setFontMetrics" matches the argument list:
>             function "UMLWidget::setFontMetrics(UMLWidget::FontType,
>                       QFontMetrics &)"
>             function "UMLWidget::setFontMetrics(UMLWidget::FontType,
>                       QFontMetrics)"
>             argument types are: (UMLWidget::FontType, QFontMetrics)
>      setFontMetrics(fontType, painter.fontMetrics());
> --------^
> cxx: Info: 2 errors detected in the compilation of "umlwidget.cpp".
> 
> Any ideas on how to fix?

Strange the method is indeed included twice.  Just remove the first
one to fix it.

I've commited the change to CVS, but it won't get into KDE 3.2.1 (due
tomorrow).

Jonathan Riddell




More information about the umbrello-devel mailing list