Link problem in Qt 5.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..



  • Hi,
    Are you sure

    @void MyThread::NumberChanged(int)@

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.