gbm19 / qwt5-qt5

Qwt5 using Qt5
Other
2 stars 2 forks source link

building under Arch (gcc 9.1, qt 5.13) fails with incomplete type #1

Closed srtlg closed 5 years ago

srtlg commented 5 years ago

This patch fixes the compilation failure

qlist_missing.patch

make
[...]
qwt_clipper.cpp: In member function ‘QVector<QwtDoubleInterval> QwtCircleClipper::clipCircle(const QwtDoublePoint&, double) const’:
qwt_clipper.cpp:372:27: error: aggregate ‘QList<QPointF> points’ has incomplete type and cannot be defined
  372 |     QList<QwtDoublePoint> points;
      |                           ^~~~~~
qwt_clipper.cpp:374:56: error: invalid use of incomplete type ‘class QList<QPointF>’
  374 |         points += cuttingPoints((Edge)edge, pos, radius);
      |                                                        ^
In file included from /usr/include/qt/QtCore/qglobal.h:1218,
                 from /usr/include/qt/QtCore/qnamespace.h:43,
                 from /usr/include/qt/QtCore/qmargins.h:43,
                 from /usr/include/qt/QtCore/qrect.h:43,
                 from qwt_clipper.cpp:10:
/usr/include/qt/QtCore/qtypeinfo.h:212:1: note: declaration of ‘class QList<QPointF>’
  212 | Q_DECLARE_MOVABLE_CONTAINER(QList);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
qwt_clipper.cpp:386:23: error: aggregate ‘QList<double> angles’ has incomplete type and cannot be defined
  386 |         QList<double> angles;
gbm19 commented 5 years ago

Thanks. Fixed with eeacc44 commit