Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt 5.14 with VS2017 link error with QVector<QPointF>



  • I came across this same issue as reported in https://bugreports.qt.io/browse/QTBUG-78112

    error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QTypedArrayData<class QPointF>::iterator __thiscall QVector<class QPointF>::begin(class QTypedArrayData<class QPointF>::iterator)"
    

    It sounds like it is an issue with VS2017 itself. However, is there a workaround to bypass this problem? I don't quite understand when they are talking about disabling the option. Do I have to build Qt from source myself in order to bypass this problem?
    It's because I want to use the latest update on high dpi in Qt5.14. However, this makes my libraries failing to build with this link error.

    Anyone has come across this before and have a temporary solution?



  • Can you upgrade to VS2019? afaik MS adopded the "subscription" commercial offering since 2015 so the license you have allows you to always use the latest version



  • @VRonin Unfortunately I can't move to VS2019 at the moment. Is there a workaround for VS2017?
    I have the source code of the 3rd party library I am having trouble to build.



  • I figured out that I just need to comment out -DQT_STRICT_ITERATORS and this error will go away.


Log in to reply