标题:qtopia编译问题
作者:axfwn
日期:2010-04-13 21:57
内容:
arm-linux-g++ -c -pipe -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/utuLinux2.6.24/qtopia-1.7-tp/qt-embedded-2.3.7/include -o main.o main.cpp
/utuLinux2.6.24/qtopia-1.7-tp/qt-embedded-2.3.7/include/qdialog.h: In copy
constructor `Form1::Form1(const Form1&)':
/utuLinux2.6.24/qtopia-1.7-tp/qt-embedded-2.3.7/include/qdialog.h:112: 错误: `
QDialog::QDialog(const QDialog&)' is private
main.cpp:6: 错误: within this context
main.cpp: In function `int main(int, char**)':
main.cpp:6: 错误: initializing temporary from result of `
Form1::Form1(QWidget*, const char*, bool, unsigned int)'
make: *** 错误 1
以上是make的时候出现的问题,我的main.cpp程序如下:
#include
#include "1.h"
int main( int argc, char *argv[] )
{
QApplication app(argc,argv);
Form1 f=new Form1();
f.show();
return app.exec();
}
1.cpp程序如下:
#include "1.h"
#include
#include
#include
#include
#include
#include
#include
#include
/*
*Constructs a Form1 which is a child of 'parent', with the
*name 'name' and widget flags set to 'f'
*
*The dialog will by default be modeless, unless you set 'modal' to
*TRUE to construct a modal dialog.
*/
Form1::Form1( QWidget* parent,const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "aaa" );
resize( 596, 480 );
setCaption( tr( "Form1&quo ..
#1 [axfwn 04-14 08:55]
有谁见过类似的错误呢? 我感觉程序代码好像没问题 环境变量应该也都设置好了 我是刚刚接触这方面的东西 很多不熟悉 麻烦各位大神了