Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. 13 LNK2001 errors with qt 5.11
QtWS25 Last Chance

13 LNK2001 errors with qt 5.11

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
lnk2001qt5.11
4 Posts 2 Posters 973 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mintykat
    wrote on 15 Aug 2018, 16:50 last edited by
    #1

    I can't seem to locate the correct libs to link to in visual studio 2017. Here are snippets from some of the unresolved external symbol errors:
    disconnectNotify@QObject@@MAEXPBD@Z
    sizeHint@QMessageBox@@UBE?AVQSize@@XZ
    languageChange@QWidget@@MAEXXZ
    windowActivationChange@QWidget@@MAEX_N@Z
    fontChange@QWidget@@MAEXABVQFont@@@Z
    QWidget::enabledChange(bool)" (imp?enabledChange@QWidget@@MAEX_N@Z)
    QWidget::styleChange(class QStyle &)" (imp?styleChange@QWidget@@MAEXAAVQStyle@@@Z)
    QWidget::winEvent(struct tagMSG *,long *)" (imp?winEvent@QWidget@@MAE_NPAUtagMSG@@PAJ@Z)
    QWidget::releaseDC(struct HDC
    *)const " (imp?releaseDC@QWidget@@UBEXPAUHDC
    @@@Z)
    QWidget::getDC(void)const " (imp?getDC@QWidget@@UBEPAUHDC_@@XZ)

    M 1 Reply Last reply 15 Aug 2018, 18:45
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 Aug 2018, 17:36 last edited by
      #2

      Hi and welcome to devnet,

      Did you check that you are linking against the widgets module ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M mintykat
        15 Aug 2018, 16:50

        I can't seem to locate the correct libs to link to in visual studio 2017. Here are snippets from some of the unresolved external symbol errors:
        disconnectNotify@QObject@@MAEXPBD@Z
        sizeHint@QMessageBox@@UBE?AVQSize@@XZ
        languageChange@QWidget@@MAEXXZ
        windowActivationChange@QWidget@@MAEX_N@Z
        fontChange@QWidget@@MAEXABVQFont@@@Z
        QWidget::enabledChange(bool)" (imp?enabledChange@QWidget@@MAEX_N@Z)
        QWidget::styleChange(class QStyle &)" (imp?styleChange@QWidget@@MAEXAAVQStyle@@@Z)
        QWidget::winEvent(struct tagMSG *,long *)" (imp?winEvent@QWidget@@MAE_NPAUtagMSG@@PAJ@Z)
        QWidget::releaseDC(struct HDC
        *)const " (imp?releaseDC@QWidget@@UBEXPAUHDC
        @@@Z)
        QWidget::getDC(void)const " (imp?getDC@QWidget@@UBEPAUHDC_@@XZ)

        M Offline
        M Offline
        mintykat
        wrote on 15 Aug 2018, 18:45 last edited by
        #3

        @mintykat Had to use the 4.7 qt libs - probably due to presence of some 4.7.3 code in some moc .h files

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 15 Aug 2018, 21:58 last edited by
          #4

          The moc files are generated code, they should not be part of the source tree. Nuke them and rebuild with a more recent version of Qt. Qt 4 has already reached end of life for a couple of years now.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          4/4

          15 Aug 2018, 21:58

          • Login

          • Login or register to search.
          4 out of 4
          • First post
            4/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved