Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved LNK2019 error

    General and Desktop
    3
    6
    781
    Loading More Posts
    • 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
      TLoZ_KZP last edited by

      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 Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • T
          TLoZ_KZP @jsulm last edited by

          @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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • T
              TLoZ_KZP last edited by

              Thanks, that was the error

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • First post
                  Last post