1、字符为中文格式

error: stray ‘\357’ in program
error: stray ‘\274’ in program
error: stray ‘\232’ in program

2、变量名命名非法

error: invalid suffix "xsrvcc" on integer constant

3、数组声明的头文件没有找到

error: array type has incomplete element type

4、int型的变量当做了指针使用

 error: invalid type argument of ‘unary *’ (have ‘int’)

5、变量类型没有定义

error: storage size of ‘imsi_resp’ isn’t known

6、缺少一个花括号,可用#if-#endif分段排查

error:expected declaration or statement at end of input

7、uint8_t未定义,需要包含头文件 #include<stdint.h>

error:expected specifier-qualifier-list before ‘uint8_t’

Logo

更多推荐