编译QT demo hello程序,出现以下错误,是什么原因。我用的是TI xdc 编译环境。
lnk470MV app_debug.x470MV ...
package/cfg/app_debug/hello.o470MV(.text+0x130): In function `Hello::Hello(char const*, QWidget*, char const*)':
/usr/local 3-arm/include/qstring.h:851: undefined reference to `vtable for Hello'
package/cfg/app_debug/hello.o470MV(.text+0x270): In function `Hello::Hello(char const*, QWidget*, char const*)':
/usr/local 3-arm/include/qstring.h:851: undefined reference to `vtable for Hello'
package/cfg/app_debug/hello.o470MV(.text+0x308): In function `Hello::mouseReleaseEvent(QMouseEvent*)':
/mnt/hgfs/work/xdc/hello/app/hello.cpp:53: undefined reference to `Hello::clicked()'
package/cfg/app_debug/main.o470MV(.text+0x3e8): In function `main':
/usr/local 3-arm/include/qstring.h:851: undefined reference to `vtable for Hello'
collect2: ld returned 1 exit status
gmake[1]: *** [app_debug.x470MV] Error 1
gmake: *** [app/,install] Error 2