Syntax error on token “}“, delete this token等问题解决

遇到一堆如下类似的报错

Syntax error on token “}“, delete this token

syntax error - token "," inserted before " xxx"

syntax error - token "" deleted

syntax error - token ";" inserted before "xxx"

syntax error - token ")" inserted before "uint8"

1、首先要确认是否真的是代码中缺少‘,’ ‘;’ ‘{}’ ‘()’

2、是否有定义没有包含头文件(重要)

3、排除第一步后排查该段代码定义声明头文件是否有重名的,导致找不到变量类型声明

你可能感兴趣的:(mcu,arm)