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. Error building sample application Qt 5.14, Visual stuido 2019
Forum Updated to NodeBB v4.3 + New Features

Error building sample application Qt 5.14, Visual stuido 2019

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 713 Views 1 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.
  • KiraK Offline
    KiraK Offline
    Kira
    wrote on last edited by
    #1

    Hello all,
    I am trying to build my project on visual studio using msvc2017- 64 bit compiler getting the following errors:
    error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl QMetaObject::connectSlotsByName(class QObject *)" (_imp?connectSlotsByName@QMetaObject@@SAXPEAVQObject@@@Z)error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl QMetaObject::connectSlotsByName(class QObject *)" (_imp?connectSlotsByName@QMetaObject@@SAXPEAVQObject@@@Z)error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl QMetaObject::connectSlotsByName(class QObject *)" (_imp?connectSlotsByName@QMetaObject@@SAXPEAVQObject@@@Z)
    : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl QMetaObject::connectSlotsByName(class QObject *)" (_imp?connectSlotsByName@QMetaObject@@SAXPEAVQObject@@@Z): error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl QMetaObject::connectSlotsByName(class QObject *)" (_imp?connectSlotsByName@QMetaObject@@SAXPEAVQObject@@@Z): error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl QMetaObject::connectSlotsByName(class QObject *)" (_imp?connectSlotsByName@QMetaObject@@SAXPEAVQObject@@@Z)
    : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl QMetaObject::connectSlotsByName(class QObject *)" (_imp?connectSlotsByName@QMetaObject@@SAXPEAVQObject@@@Z): error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl QMetaObject::connectSlotsByName(class QObject *)" (_imp?connectSlotsByName@QMetaObject@@SAXPEAVQObject@@@Z): error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl QMetaObject::connectSlotsByName(class QObject *)" (_imp?connectSlotsByName@QMetaObject@@SAXPEAVQObject@@@Z)
    error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl QMetaObject::connectSlotsByName(class QObject *)" (_imp?connectSlotsByName@QMetaObject@@SAXPEAVQObject@@@Z) error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl QMetaObject::connectSlotsByName(class QObject *)" (_imp?connectSlotsByName@QMetaObject@@SAXPEAVQObject@@@Z) error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl QMetaObject::connectSlotsByName(class QObject *)" (_imp?connectSlotsByName@QMetaObject@@SAXPEAVQObject@@@Z)
    error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ) error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ) error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ)
    error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ)error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ)error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ)
    : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ): error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ): error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ)
    j : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ)j : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ)j : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ)
    : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ): error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ): error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (_imp??1Connection@QMetaObject@@QEAA@XZ)
    rror LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ)rror LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ)rror LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ)
    error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ)error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ)error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ)
    : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ): error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ): error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ)
    : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ): error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ): error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ)
    error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ) error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ) error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __cdecl QObject::objectName(void)const " (_imp?objectName@QObject@@QEBA?AVQString@@XZ)

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You don't link against QtCore.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      KiraK 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        You don't link against QtCore.

        KiraK Offline
        KiraK Offline
        Kira
        wrote on last edited by
        #3

        @Christian-Ehrlicher : can u please explain in detail.
        The compiler is not giving any error have included all the header files. :)

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Kira said in Error building sample application Qt 5.14, Visual stuido 2019:

          can u please explain in detail.

          What should I explain here? If you want to use QtCore, you have to link against it. If you're using pro-files than this is done automatically. If you're using something else you have to do it on your own.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          KiraK 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            @Kira said in Error building sample application Qt 5.14, Visual stuido 2019:

            can u please explain in detail.

            What should I explain here? If you want to use QtCore, you have to link against it. If you're using pro-files than this is done automatically. If you're using something else you have to do it on your own.

            KiraK Offline
            KiraK Offline
            Kira
            wrote on last edited by
            #5

            @Christian-Ehrlicher : Actually when i was using msvc2015 along with visual studio everything was working fine. So i have followed the same process here for msvc 2017

            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Kira said in Error building sample application Qt 5.14, Visual stuido 2019:

              So i have followed the same process here for msvc 2017

              Which process? What buildsystem do you use? What Qt version do you use, ... ? It would be really nice when you can provide the information without we need to ask every time - you're here long enough to know what we need.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              KiraK 1 Reply Last reply
              0
              • Christian EhrlicherC Christian Ehrlicher

                @Kira said in Error building sample application Qt 5.14, Visual stuido 2019:

                So i have followed the same process here for msvc 2017

                Which process? What buildsystem do you use? What Qt version do you use, ... ? It would be really nice when you can provide the information without we need to ask every time - you're here long enough to know what we need.

                KiraK Offline
                KiraK Offline
                Kira
                wrote on last edited by Kira
                #7

                @Christian-Ehrlicher said in Error building sample application Qt 5.14, Visual stuido 2019:

                here long enough to know what we need.

                Sorry for that.
                Here are the details of the implementation:
                I am using Qt 5.14 and using the msvc-2017 compiler.
                Below are the snaps of the settings:

                2895e77b-7e8c-4134-8798-8b002c9c73a4-image.png in case of anything else required.
                80028b12-b0cc-4e0b-86d7-50f5808f6ac2-image.png

                General settings:
                of c/C++
                b53e5084-3596-496c-a091-21538105e7cc-image.png

                1 Reply Last reply
                0

                • Login

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