打印
[PIC®/AVR®/dsPIC®产品]

求助MPLAB XIDE XC8编译出错

[复制链接]
906|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
hw1015|  楼主 | 2015-9-27 11:45 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
PIC16F1936
程序出现类似问题



static unsigned char CurState;


输出窗口显示
charge.c:572: error: ";" expected
charge.c:577: error: no identifier in declaration
charge.c:577 warning: missing basic type; int assumed
charge.c:577: error: ";" expected
charge.c:581: error: no identifier in declaration
charge.c:581 warning: missing basic type; int assumed
charge.c:581: error: ";" expected
charge.c:582: error: no identifier in declaration
charge.c:582 warning: missing basic type; int assumed
charge.c:582: error: ";" expected
charge.c:587: error: no identifier in declaration
charge.c:587 warning: missing basic type; int assumed
charge.c:587: error: ";" expected
charge.c:588: error: type redeclared
charge.c:588: error: conflicting declarations for variable "StateProcess" (charge.c:275)
charge.c:589: error: no identifier in declaration
charge.c:589 warning: missing basic type; int assumed
charge.c:589: error: ";" expected

请高人指点

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

2

主题

2

帖子

0

粉丝