main.o: In function `MyTray':
/x0soft/star/main.cpp:35: undefined reference to `KSystemTray::KSystemTray(QWidget*, char const*)'
/x0soft/star/main.cpp:43: undefined reference to `KSystemTray::~KSystemTray()'
/x0soft/star/main.cpp:35: undefined reference to `KSystemTray::KSystemTray(QWidget*, char const*)'
/x0soft/star/main.cpp:43: undefined reference to `KSystemTray::~KSystemTray()'
main.o: In function `MyWidget':
/x0soft/star/main.cpp:68: undefined reference to `KGlobal::instance()'
/x0soft/star/main.cpp:68: undefined reference to `KSystemTray::loadIcon(QString const&, KInstance*)'
/x0soft/star/main.cpp:68: undefined reference to `KGlobal::instance()'
/x0soft/star/main.cpp:68: undefined reference to `KSystemTray::loadIcon(QString const&, KInstance*)'
main.o: In function `main':
/x0soft/star/main.cpp:206: undefined reference to `KApplication::KApplication(int&, char**, QCString const&, bool, bool)'
/x0soft/star/main.cpp:211: undefined reference to `KApplication::~KApplication()'
/x0soft/star/main.cpp:207: undefined reference to `KApplication::~KApplication()'
main.o: In function `MyTray::mousePressEvent(QMouseEvent*)':
/x0soft/star/main.cpp:56: undefined reference to `KSystemTray::mousePressEvent(QMouseEvent*)'
main.o.gnu.linkonce.r._ZTV6MyTray+0xc): undefined reference to `KSystemTray::className() const'
main.o.gnu.linkonce.r._ZTV6MyTray+0x10): undefined reference to `KSystemTray::qt_cast(char const*)'
main.o.gnu.linkonce.r._ZTV6MyTray+0x14): undefined reference to `KSystemTray::qt_invoke(int, QUObject*)'
main.o.gnu.linkonce.r._ZTV6MyTray+0x1: undefined reference to `KSystemTray::qt_emit(int, QUObject*)'
main.o.gnu.linkonce.r._ZTV6MyTray+0x1c): undefined reference to `KSystemTray::qt_property(int, int, QVariant*)'
main.o.gnu.linkonce.r._ZTV6MyTray+0xa0): undefined reference to `KSystemTray::setCaption(QString const&)'
main.o.gnu.linkonce.r._ZTV6MyTray+0x120): undefined reference to `KSystemTray::mouseReleaseEvent(QMouseEvent*)'
main.o.gnu.linkonce.r._ZTV6MyTray+0x140): undefined reference to `KSystemTray::enterEvent(QEvent*)'
main.o.gnu.linkonce.r._ZTV6MyTray+0x17c): undefined reference to `KSystemTray::showEvent(QShowEvent*)'
main.o.gnu.linkonce.r._ZTV6MyTray+0x1f0): undefined reference to `KSystemTray::setPixmap(QPixmap const&)'
main.o:(.gnu.linkonce.r._ZTV6MyTray+0x204): undefined reference to `KSystemTray::contextMenuAboutToShow(KPopupMenu*)'
main.o:(.gnu.linkonce.r._ZTV6MyTray+0x20: undefined reference to `KSystemTray::virtual_hook(int, void*)'
main.o:(.gnu.linkonce.r._ZTI6MyTray+0x: undefined reference to `typeinfo for KSystemTray'
main.o: In function `KSystemTray::metaObject() const':
/usr/include/ksystemtray.h:65: undefined reference to `KSystemTray::staticMetaObject()'
main.o: In function `~MyTray':
/x0soft/star/main.cpp:211: undefined reference to `KSystemTray::~KSystemTray()'
/x0soft/star/main.cpp:211: undefined reference to `KSystemTray::~KSystemTray()'
collect2: ld returned 1 exit status
make: *** [star] 错误 1 |