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 error
Qt 6.11 is out! See what's new in the release blog

LNK2019 error

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 1.3k 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.
  • T Offline
    T Offline
    TLoZ_KZP
    wrote on last edited by
    #1

    Well my problem happens when I use emit. I had various threads and in one the emit works perfect but when I use other emit in other thread I had the LNK2019 error.
    Thanks

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

      I guess with "emit" you mean emit signal?
      Can you provide the whole error message?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply
      0
      • jsulmJ jsulm

        I guess with "emit" you mean emit signal?
        Can you provide the whole error message?

        T Offline
        T Offline
        TLoZ_KZP
        wrote on last edited by
        #3

        @jsulm
        thread_fabricacuervos.obj:-1: error: LNK2019: símbolo externo "public: void __thiscall thread_FabricaCuervos::crear_crow(int,int,int)" (?crear_crow@thread_FabricaCuervos@@QAEXHHH@Z) sin resolver al que se hace referencia en la función "public: virtual void __thiscall thread_FabricaCuervos::run(void)" (?run@thread_FabricaCuervos@@UAEXXZ)

        and also this one
        debug\CoolFarm.exe:-1: error: LNK1120: 1 externos sin resolver

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

          Hi,

          How did you declare your signal ? Also are you missing the Q_OBJECT macro in your class declaration ?

          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
          • T Offline
            T Offline
            TLoZ_KZP
            wrote on last edited by
            #5

            Thanks, that was the error

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

              You're welcome !

              Since you have it working now, please mark the thread as solved using the "Topic Tool" button so other forum users may know a solution has been found :)

              Also, while browsing the forum, consider up-voting answers that helped you. That will make them easier to find for other people :)

              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

              • Login

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