LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 822|回复: 1

helloworld 程序,编译不通过,请大侠们指点

[复制链接]
发表于 2010-10-18 15:48:59 | 显示全部楼层 |阅读模式
我的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库的路径问题,请大家指点下
谢谢
发表于 2010-10-18 18:20:30 | 显示全部楼层
multiple definition of 'main',多次main的定义?
还有只有warning,没有error,怎么不通过?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表