根据友善的光盘,提供的资料,编译了qt-embedded-2.3.7 .qt-x11.2.3.3 qtopia- 1.7,tmake等文件,然后编译hello例子,没有出错.
所以自己写了个例子,
#include <qapplication.h>
#include <qpushbutton.h>
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QPushButton hello( "Hello world!", 0 );
hello.resize( 100, 30 );
a.setMainWidget( &hello );
hello.show();
return a.exec();
}
这是
http://www.qiliang.net/qt/tutorial1-01.html的标准例子,但是编译出现错误:
/friendly-arm/x88-qtopia/qt/lib/libqte.so:undefined reference to 'operator new[](unsigned)'
等错误,所出的错误全部源于:libqte.so这个文件
请问这是什么原因?
[ 此贴被XChinux在2007-01-07 17:27重新编辑 ]