|
在编译pro/first时:
arm-linux-g++ -o /opt/EmbedSky/Qte/arm-qtopia-2.2.0/qtopia/image/opt/Qtopia/bin/first main.o first.o moc_first.o -L/opt/EmbedSky/Qte/arm-qtopia-2.2.0/qtopia/lib -L/opt/EmbedSky/Qte/arm-qtopia-2.2.0/qt2/lib -lm -lqpe -lqtopia -lqte
moc_first.o(.text+0x114): In function `first::staticMetaObject()':
: undefined reference to `QMetaObject::new_metaobject(char const*, char const*, QMetaData*, int, QMetaData*, int, QMetaProperty*, int, QMetaEnum*, int, QClassInfo*, int)'
moc_first.o(.gnu.linkonce.r._ZTV5first+0x134): undefined reference to `QWidget::dragEnterEvent(QDragEnterEvent*)'
moc_first.o(.gnu.linkonce.r._ZTV5first+0x138): undefined reference to `QWidget::dragMoveEvent(QDragMoveEvent*)'
moc_first.o(.gnu.linkonce.r._ZTV5first+0x13c): undefined reference to `QWidget::dragLeaveEvent(QDragLeaveEvent*)'
moc_first.o(.gnu.linkonce.r._ZTV5first+0x140): undefined reference to `QWidget::dropEvent(QDropEvent*)'
collect2: ld returned 1 exit status
make: *** [/opt/EmbedSky/Qte/arm-qtopia-2.2.0/qtopia/image/opt/Qtopia/bin/first] 错误 1 |
|