首页| 论坛| 消息

标题:无符号字符在QT中如何定义?
作者:zyt2006
日期:2010-05-09 21:15
内容:

在linux下,QT界面设计完成之后,我定义了几个无符号字符的全局变量:
static uchar iRslt1,iRslt2,iRslt3,iRstl1;
make时候,提示:
fingermap.h:20: redefinition of `unsigned char iRslt1'
fingermap.h:20: `unsigned char iRslt1' previously declared here
fingermap.h:20: redefinition of `unsigned char iRslt2'
fingermap.h:20: `unsigned char iRslt2' previously declared here
fingermap.h:20: redefinition of `unsigned char iRslt3'
fingermap.h:20: `unsigned char iRslt3' previously declared here
fingermap.h:20: redefinition of `unsigned char iRstl1'
fingermap.h:20: `unsigned char iRstl1' previously declared here
这该如何解决?大虾们帮下忙。。。谢谢!


#1 [dbzhang800 05-09 22:40]
头文件中不要放 定义,只放声明 !!!
(类定义、inline函数定义,const变量定义 除外)
#2 [zyt2006 05-10 16:57]
解决了。。。。谢谢~!

回复 发表
主题 版块