解决error: #8: missing closing quote报错

博客指出Keil5不认识UTF-8无BOM编码的问题,给出的解决办法是去官网https://notepad-plus-plus.org/ 下载Notepad++,然后使用Notepad++将文件转为UTF-8 - BOM编码。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Build started: Project: G4 *** Using Compiler 'V5.06 update 5 (build 528)', folder: 'D:\keil\ARM\ARMCC\Bin' Build target 'G4' compiling OLED_Data.c... ..\code\OLED_Data.c(336): error: #8: missing closing quote "锛?", ..\code\OLED_Data.c(337): error: #253: expected a "," ..\code\OLED_Data.c(340): error: #8: missing closing quote "銆?", ..\code\OLED_Data.c(341): error: #253: expected a "," ..\code\OLED_Data.c(344): error: #8: missing closing quote "浣?", ..\code\OLED_Data.c(345): error: #253: expected a "," ..\code\OLED_Data.c(348): error: #8: missing closing quote "濂?", ..\code\OLED_Data.c(349): error: #253: expected a "," ..\code\OLED_Data.c(352): error: #8: missing closing quote "涓?", ..\code\OLED_Data.c(353): error: #253: expected a "," ..\code\OLED_Data.c(356): error: #8: missing closing quote "鐣?", ..\code\OLED_Data.c(357): error: #253: expected a "," ..\code\OLED_Data.c(363): error: #144: a value of type "char *" cannot be used to initialize an entity of type "uint8_t" "", ..\code\OLED_Data.c: 0 warnings, 13 errors compiling main.c... ../Core/Src/main.c(128): error: #8: missing closing quote OLED_ShowChinese(0, 48, "浣犲ソ涓栫晫銆?"); ../Core/Src/main.c(131): error: #18: expected a ")" OLED_ShowImage(96, 48, 16, 16, Diode); ../Core/Src/main.c(87): warning: #177-D: variable "TxBuf" was declared but never referenced uint8_t TxBuf[]="qoqwasdaw\r\n"; ../Core/Src/main.c: 1 warning, 2 errors compiling OLED.c... "G4\G4.axf" - 15 Error(s), 1 Warning(s). Target not created. Build Time Elapsed: 00:00:04这个要怎么处理
最新发布
08-07
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值