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. LNK2019: unresolved external symbol and LNK1120: 1 unresolved externals
Forum Updated to NodeBB v4.3 + New Features

LNK2019: unresolved external symbol and LNK1120: 1 unresolved externals

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 66 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.
  • H Offline
    H Offline
    hoandepchai
    wrote last edited by hoandepchai
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote last edited by
      #2

      Hi @hoandepchai,

      well the linker is searching for a function (constructor) GPSDriverUBX::GPSDriverUBX but cannot find it (or maybe it cannot find the correct overload in case there are multiple definitions of this functions. It also says, this function is called from the function void GPSProvider::run(void).

      So what I would do:

      1. Completely clean the build environment and rebuild everything
      2. Make sure you link the file that contains GPSDriverUBX::GPSDriverUBX (in case that's an external library, make sure you link the library)

      In case that does not help, have a look at the linker command line in the build output if you can spot something unusual.

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote last edited by
        #3

        Hi,

        In addition to what @aha_1980 wrote, if that function is yours, are you properly exporting it ?

        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
        • aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote last edited by
          #4

          Hi @hoandepchai,

          why did you delete your post?

          Regards

          Qt has to stay free or it will die.

          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