32G,独立程序,编译出错
官网下载独立程序,编译有时出错STC32G_GPIO.c(1): error C25: syntax error near '<EOF>'
STC32G_GPIO.c(1): error C7: compilation aborted
compiling STC32G_NVIC.c...
STC32G_NVIC.c(1): error C16: unprintable character 0x87 skipped
STC32G_NVIC.c(1): error C16: unprintable character 0x1C skipped
STC32G_NVIC.c(1): error C16: unprintable character 0xA8 skipped
STC32G_NVIC.c(1): error C25: syntax error near '}'
STC32G_NVIC.c(1): error C25: syntax error near '<EOF>'
STC32G_NVIC.c(1): error C7: compilation aborted
compiling STC32G_Timer.c...
STC32G_Timer.c(1): error C16: unprintable character 0x87 skipped
STC32G_Timer.c(1): error C16: unprintable character 0x1C skipped
STC32G_Timer.c(1): error C25: syntax error near '}'
STC32G_Timer.c(1): error C25: syntax error near '<EOF>'
STC32G_Timer.c(1): error C7: compilation aborted
compiling STC32G_Timer_Isr.c...
STC32G_Timer_Isr.c(1): error C16: unprintable character 0x87 skipped
STC32G_Timer_Isr.c(1): error C16: unprintable character 0x1C skipped
STC32G_Timer_Isr.c(1): error C16: unprintable character 0xDA skipped
STC32G_Timer_Isr.c(1): error C25: syntax error near '}'
STC32G_Timer_Isr.c(1): error C25: syntax error near '<EOF>'
STC32G_Timer_Isr.c(1): error C7: compilation aborted
Target not created.
Build Time Elapsed:00:00:01
是哪里没有设置好吧 haiyang201 发表于 2025-3-26 11:08
是哪里没有设置好吧
开始是能编译成功,只要复制到其它文件夹就出现错误,很是奇怪。 是不是包含的文件路径变了 和路径没关系,同一文件下有的能有的编译错误 相关报错的.c文件用记事本打开另存时选择ANSI格式。 放中文目录了? 21cnsound 发表于 2025-3-26 11:56
相关报错的.c文件用记事本打开另存时选择ANSI格式。
记事本打开乱码 soma 发表于 2025-3-26 12:49
放中文目录了?
STC中文目录应该没问题吧,PIC确实不行 YYB 发表于 2025-3-26 13:13
STC中文目录应该没问题吧,PIC确实不行
如果中文包含0xfd就不行,没有就没事
页:
[1]
2