|
我的helloworld程序如下:
#include<qapplication.h>
#include<qpushbutton.h>
int main(nt argc,char*argv[])
{
QApplication app(argc,argv) ;
QPushButton b(NULL,"hello") ;
b.show() ;
QObject::connect(&b,SIGNAL(clicked()),&app,SLOT(qiut())) ;
return app.exe() ;
}
编译提示如下:
warning:size of symbol 'main' changed from 27 to 196 in test.0(注:test.o 是我的生成目标文件)
multiple definition of 'main'
请问大侠,这个是怎么回事,如何处理?
我的环境是rh 9,并且这个不是qt库的路径问题,请大家指点下
谢谢 |
|