linux C語言常見錯誤

<span style="font-size:18px;">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</span>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章