• 5372阅读
  • 4回复

库连接到了,可是里面的类函数都没有定义是怎么回事?有详细错误信息!! [复制链接]

上一主题 下一主题
离线miaoronghua
 
只看楼主 倒序阅读 楼主  发表于: 2008-05-12
— 本帖被 XChinux 执行加亮操作(2008-05-12) —
[root@localhost world]# ls
hello.cpp  hello.h  hello.pro  hello.ui  main.cpp  Makefile
[root@localhost world]# vi Makefile
[root@localhost world]# make
arm-none-linux-gnueabi-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/home/jerry/ltib-imx31ads-20071008/rpm/BUILD/qtopia-free-2.2.0/qt2/include -o hello.o hello.cpp
/home/jerry/ltib-imx31ads-20071008/rpm/BUILD/qtopia-free-2.2.0/qt2/include/qtooltip.h:87: warning: 'class QToolTip' has virtual functions but non-virtual destructor
arm-none-linux-gnueabi-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/home/jerry/ltib-imx31ads-20071008/rpm/BUILD/qtopia-free-2.2.0/qt2/include -o main.o main.cpp
/home/jerry/ltib-imx31ads-20071008/rpm/BUILD/qtopia-free-2.2.0/qt2/bin/moc hello.h -o moc_hello.cpp
arm-none-linux-gnueabi-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/home/jerry/ltib-imx31ads-20071008/rpm/BUILD/qtopia-free-2.2.0/qt2/include -o moc_hello.o moc_hello.cpp
arm-none-linux-gnueabi-g++  -o hello hello.o main.o moc_hello.o  -L/home/jerry/ltib-imx31ads-20071008/rpm/BUILD/qtopia-free-2.2.0/qt2/lib -lm -L/home/jerry/ltib-imx31ads-20071008/rpm/BUILD/arm-none-linux-gnueabi/lib -lqte -lts -ljpeg -lstdc++
moc_hello.o: In function `hello::staticMetaObject()':
moc_hello.cpp:(.text+0xd0): undefined reference to `QMetaObject::new_metaobject(char const*, char const*, QMetaData*, int, QMetaData*, int, QMetaProperty*, int, QMetaEnum*, int, QClassInfo*, int)'
moc_hello.o:(.rodata+0x134): undefined reference to `QWidget::dragEnterEvent(QDragEnterEvent*)'
moc_hello.o:(.rodata+0x138): undefined reference to `QWidget::dragMoveEvent(QDragMoveEvent*)'
moc_hello.o:(.rodata+0x13c): undefined reference to `QWidget::dragLeaveEvent(QDragLeaveEvent*)'
moc_hello.o:(.rodata+0x140): undefined reference to `QWidget::dropEvent(QDropEvent*)'
collect2: ld returned 1 exit status
make: *** [hello] Error 1
自己删除过-lqte这个库,make 后的错误多的不可数,所以很确定这些函数都是在libqte里面,自己又添加了一下,可还是老样子,还会有这样的错误,请教高手,库的问题怎么解决?
离线shiroki

只看该作者 1楼 发表于: 2008-05-13
qte里的drag and drop默认被裁减掉了
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线miaoronghua
只看该作者 2楼 发表于: 2008-05-13
这么高级??
还会默认裁减??
解决方案怎么说??
谢谢,能不能说说如何避免并且解决方案也没有提
可是后来我也重新复制过别人的LIBQTE结果还是一样
离线sun123456

只看该作者 3楼 发表于: 2008-09-01
请问有没有解决方法?
是不是只可以回避这个问题,有其他方法实现类似的功能?
谢谢!:)
离线halloworld
只看该作者 4楼 发表于: 2009-02-11
help
快速回复
限100 字节
 
上一个 下一个