Discussion:
Please correct an include QFontMetrics file name typo...
(too old to reply)
marco bra
2010-06-03 08:27:30 UTC
Permalink
On Ubuntu 9.10 and 10.04 i get this error on compile from svn

../../../QApplication.cpp:86:30: error: QtGui/QFontmetrics: Nessun
file o directory
../../../QApplication.cpp: In function ‘void
HB_FUN_QT_QAPPLICATION_FONTMETRICS()’:
../../../QApplication.cpp:532: error: invalid use of incomplete type
‘struct QFontMetrics’
/usr/include/qt4/QtGui/qwindowdefs.h:71: error: forward declaration of
‘struct QFontMetrics’
../../../QApplication.cpp:532: error: invalid use of incomplete type
‘struct QFontMetrics’
/usr/include/qt4/QtGui/qwindowdefs.h:71: error: forward declaration of
‘struct QFontMetrics’
../../../QApplication.cpp: At global scope:
../../../QApplication.cpp:141: warning: ‘static_int__hb_hbqt_init_’
defined but not used
make[4]: *** [QApplication.o] Errore 1
make[3]: *** [descend] Errore 2
make[2]: *** [qtgui.inst] Errore 2
make[1]: *** [hbqt.inst] Errore 2
make: *** [contrib.inst] Errore 2

The include file in both system is QtGui/QFontMetrics and not
QtGui/QFontmetrics:

please correct the uppercase of metric to avoid the above error.

harbour/contrib/hbqt/qtgui/QApplication.cpp at line 86

Thank you and best regards.

Marco
--
Linux Infinite Freedom
Continue reading on narkive:
Loading...