• 3439阅读
  • 0回复

tmake 的问题 [复制链接]

上一主题 下一主题
离线hahaxiao
 
只看楼主 倒序阅读 楼主  发表于: 2008-01-12
— 本帖被 XChinux 执行加亮操作(2008-07-17) —
我用uic 进行了ui文件的转化后,又改变了QT集成开发环境生长的.pro文件,但是在交叉编译的时候出现了以下错误,请问大家这是什么原因
arm-linux-gcc  -o a main.o form2.o moc_form2.o  -L/usr/lib/qt-3.1/lib -lm -lqte
main.o(.gnu.linkonce.r._ZTV6QGList+0x18): undefined reference to `QPtrCollection::newItem(void*)'
main.o(.gnu.linkonce.r._ZTV6QGList+0x1c): undefined reference to `__cxa_pure_virtual'
form2.o(.text+0x50): In function `Form2::Form2[not-in-charge](QWidget*, char const*, bool, unsigned)':
: undefined reference to `operator new(unsigned)'
form2.o(.text+0x9c): In function `Form2::Form2[not-in-charge](QWidget*, char const*, bool, unsigned)':
: undefined reference to `operator new(unsigned)'
form2.o(.text+0x1bc): In function `Form2::Form2[in-charge](QWidget*, char const*, bool, unsigned)':
: undefined reference to `operator new(unsigned)'
form2.o(.text+0x208): In function `Form2::Form2[in-charge](QWidget*, char const*, bool, unsigned)':
: undefined reference to `operator new(unsigned)'
form2.o(.text+0x33c): In function `Form2::~Form2 [in-charge deleting]()':
: undefined reference to `operator delete(void*)'
moc_form2.o(.text+0x44): In function `Form2::tr(char const*, char const*)':
: undefined reference to `QApplication::translate(char const*, char const*, char const*, QApplication::Encoding) const'
moc_form2.o(.text+0xa0): In function `Form2::trUtf8(char const*, char const*)':
: undefined reference to `QApplication::translate(char const*, char const*, char const*, QApplication::Encoding) const'
moc_form2.o(.text+0x11c): In function `Form2::staticMetaObject()':
: undefined reference to `QMetaObject::new_metaobject(char const*, QMetaObject*, QMetaData const*, int, QMetaData const*, int, QMetaProperty const*, int, QMetaEnum const*, int, QClassInfo const*, int)'
moc_form2.o(.text+0x130): In function `Form2::staticMetaObject()':
: undefined reference to `QMetaObjectCleanUp::setMetaObject(QMetaObject*&)'
moc_form2.o(.text+0x188): In function `Form2::qt_cast(char const*)':
: undefined reference to `QDialog::qt_cast(char const*)'
快速回复
限100 字节
 
上一个 下一个