[PIC®/AVR®/dsPIC®产品] 求助MPLAB XIDE XC8编译出错

[复制链接]
1064|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

粉丝
快速回复 在线客服 返回列表 返回顶部