标题:请教关于main.cpp文件的一个错误!!
作者:www888www
日期:2007-10-07 10:52
内容:
我的main.cpp文件如下:
#include
#include"cfconvmainform.h"
int main(int argc,char ** argv)
{
QApplication a(argc,argv);
cfconvMainForm w;
w.show();
a.connect(&a, SIGNAL(lastWindowClose()),&a,SLOT(quit()));
return a.exec();
}
make的时候系统提示:
main.cpp:8: 'cfconvMainForm' undeclared (first use this function)
main.cpp:8: (Each undeclared identifier is reported only once for each function it appears in.)
main.cpp:8:parse error before ';' token
main.cpp:9:'w' undeclared (first use this function)
make:*** Error 1
请问这个问题怎么解决???急!!! 谢谢各位了!!!
#1 [浪漫天使 10-07 20:57]
可以看看 cfconvmainform.h 文件吗?
#2 [cwanli 10-11 08:50]
cfconvMainForm *w = new cfconvMainForm();
a.setMainWidget(w);//***************************************
w->show();
a.connect(&a, SIGNAL(lastWindowClose()),&a,SLOT(quit()));