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. Link problem in Qt 5.1
Forum Updated to NodeBB v4.3 + New Features

Link problem in Qt 5.1

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.6k 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.
  • B Offline
    B Offline
    barun
    wrote on last edited by
    #1

    hello, i am using Qt 5.1.i want to use Qthread with gui application.but when i compiling...it shows link problem..how can i solve this?problems are :
    1.mythread.obj:-1: ошибка: LNK2019: unresolved external symbol "public: void __thiscall MyThread::NumberChanged(int)" (?NumberChanged@MyThread@@QAEXH@Z) referenced in function "public: virtual void __thiscall MyThread::run(void)" (?run@MyThread@@UAEXXZ)
    2.moc_mythread.obj:-1: ошибка: LNK2001: unresolved external symbol "public: void __thiscall MyThread::NumberChanged(int)" (?NumberChanged@MyThread@@QAEXH@Z)

    please answer me..

    1 Reply Last reply
    0
    • U Offline
      U Offline
      unai_i
      wrote on last edited by
      #2

      Hi,
      Are you sure

      @void MyThread::NumberChanged(int)@

      is correctly defined in your .cpp file? Especially are return type and arguments the same?

      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