Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt with visual studio 2017
Forum Updated to NodeBB v4.3 + New Features

Qt with visual studio 2017

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.6k Views 2 Watching
  • 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.
  • Y Offline
    Y Offline
    yabhishek
    wrote on last edited by
    #1

    I am getting the following types of error while using qcustomplot in visual studio
    ................
    1>qcustomplot.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl QObject::timerEvent(class QTimerEvent *)" (?timerEvent@QObject@@MEAAXPEAVQTimerEvent@@@Z)
    1>qcustomplot.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static struct QHashData const QHashData::shared_null" (_imp?shared_null@QHashData@@2U1@B)
    1>C:\Users\user\source\repos\Project5\x64\Debug\Project5.exe : fatal error LNK1120: 589 unresolved externals
    1>Done building project "Project5.vcxproj" -- FAILED.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========
    Perhapes I am missing some .lib file , but unable to figure it out

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      qcustomplot uses Qt.
      So i think you are not linking to Qt dlls which would normally happen if it was a
      Qt enabled project.
      Normally people use
      http://doc.qt.io/qtvstools/index.html
      to help use Qt. but i guess you have a normal vs project ?

      1 Reply Last reply
      3
      • Y Offline
        Y Offline
        yabhishek
        wrote on last edited by
        #3

        Yes it is a normal VS project.

        mrjjM 1 Reply Last reply
        0
        • Y yabhishek

          Yes it is a normal VS project.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @yabhishek
          Well then you bascially just have to link to the Qt dlls like you would nay other external
          lib. At least QtCore QtGui i would imagine.

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yabhishek
            wrote on last edited by
            #5

            I have followed the steps mentioned here
            http://ldmartin68.com/QTSetup4VSNET.html
            but not finding which .dll or .lib to add

            mrjjM 1 Reply Last reply
            0
            • Y yabhishek

              I have followed the steps mentioned here
              http://ldmartin68.com/QTSetup4VSNET.html
              but not finding which .dll or .lib to add

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @yabhishek
              My guess would be
              core gui widgets printsupport
              as that is needed for running CustomPlot examples.

              1 Reply Last reply
              1

              • Login

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