YYB 发表于 2025-3-26 10:33:50

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:30

是哪里没有设置好吧   

YYB 发表于 2025-3-26 11:16:29

haiyang201 发表于 2025-3-26 11:08
是哪里没有设置好吧

开始是能编译成功,只要复制到其它文件夹就出现错误,很是奇怪。

haiyang201 发表于 2025-3-26 11:25:08

是不是包含的文件路径变了

YYB 发表于 2025-3-26 11:47:41

和路径没关系,同一文件下有的能有的编译错误

21cnsound 发表于 2025-3-26 11:56:16

相关报错的.c文件用记事本打开另存时选择ANSI格式。

soma 发表于 2025-3-26 12:49:22

放中文目录了?

YYB 发表于 2025-3-26 13:11:47

21cnsound 发表于 2025-3-26 11:56
相关报错的.c文件用记事本打开另存时选择ANSI格式。

记事本打开乱码

YYB 发表于 2025-3-26 13:13:02

soma 发表于 2025-3-26 12:49
放中文目录了?

STC中文目录应该没问题吧,PIC确实不行

soma 发表于 2025-3-26 13:31:56

YYB 发表于 2025-3-26 13:13
STC中文目录应该没问题吧,PIC确实不行

如果中文包含0xfd就不行,没有就没事
页: [1] 2
查看完整版本: 32G,独立程序,编译出错