打印
[开发工具]

求助帖,MAPLAB编译失败问题

[复制链接]
852|6
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
lllccc1|  楼主 | 2023-9-20 13:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
导入一个项目,然后点击编译,一直报错,如下文所示:
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\209' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\219' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '#' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\228' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\221' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\193' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\228' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '#' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\183' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\153' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\221' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\173' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\183' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\153' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\221' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\173' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\221' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\30' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\8' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\162' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\183' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\153' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\221' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\173' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\183' in program
../APP_Model_V002.X/APP_Model_V002.c:5: error: stray '\153' in program
../APP_Model_V002.X/APP_Model_V002.c:5:82497: warning: no newline at end of file
make[2]: *** [build/default/production/_ext/1572851945/APP_Model_V002.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
"C:\Users\chuang.li\AppData\Roaming\Microchip\MPLAB C30\bin\pic30-gcc.exe" -g -omf=elf -x c -c -mcpu=30F4011 -MMD -MF build/default/production/_ext/1572851945/APP_Model_V002.o.d -o build/default/production/_ext/1572851945/APP_Model_V002.o ../APP_Model_V002.X/APP_Model_V002.c
nbproject/Makefile-default.mk:322: recipe for target 'build/default/production/_ext/1572851945/APP_Model_V002.o' failed
make[2]: Leaving directory 'C:/Users/chuang.li/Desktop/Mplab_CCU_21.X'
nbproject/Makefile-default.mk:84: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Users/chuang.li/Desktop/Mplab_CCU_21.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

编译已失败 (退出值2, 总时间: 3m 6s)

使用特权

评论回复
沙发
lllccc1|  楼主 | 2023-9-20 13:47 | 只看该作者
file:///C:/Users/chuang.li/Desktop/24784656-e6e1-454f-85b0-934385d80806.jpeg

使用特权

评论回复
板凳
1564564| | 2023-10-8 18:22 | 只看该作者
这意思是文件丢失嘛

使用特权

评论回复
地板
heisexingqisi| | 2023-10-9 22:08 | 只看该作者
不如上传工程,不然真不好看是什么问题。

使用特权

评论回复
5
heisexingqisi| | 2023-10-9 22:09 | 只看该作者
./APP_Model_V002.X/APP_Model_V002.c:5:82497: warning: no newline at end of file
这个是要求最后要有一行空行。

使用特权

评论回复
6
hu9jj| | 2023-10-10 08:22 | 只看该作者
那么多的报错也许就是一个问题引起的,先按楼上说的在代码最末尾加上空行试试看。

使用特权

评论回复
7
Henryko| | 2023-10-10 13:31 | 只看该作者
可以把代码上传一下吗

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

2

帖子

0

粉丝