Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78112

QVector link error with QT_STRICT_ITERATORS (regression)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 5.13.1
    • None
    • Windows

    Description

      #define QT_STRICT_ITERATORS
      #include <QVector>
      #include <QApplication>
      #include <QDebug>
      
      int main(int argc, char *argv[])
      {
      	QApplication a(argc, argv);
      	QVector<QPointF> v; v.append(QPointF(1, 2));
      	for (auto& p : v) p.ry() -= 1;
      	qDebug() << v.at(0).y();
      	return 0;
      }
      

      Error:

      main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QTypedArrayData<class QPointF>::iterator __thiscall QVector<class QPointF>::begin(class QTypedArrayData<class QPointF>::iterator)" (__imp_?begin@?$QVector@VQPointF@@@@QAE?AViterator@?$QTypedArrayData@VQPointF@@@@V23@@Z) referenced in function _main
      

      Does not link correctly anymore. Works fine with Qt5.9.0

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            jimmytaker jimmytaker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes