打印
[PIC32/SAM]

pic16f1823 c程序编译问题请教

[复制链接]
280|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
用MPLAP IDE8.92和HI-TECH PICC编译时报错如下,完全不知道怎么回事,报错也看不懂,请格纹大神帮忙指点

Build E:\PIC\PIC for device 16F1823
Using driver D:\Program Files (x86)\HI-TECH Software\PICC\9.80\bin\picc.exe

Make: The target "E:\PIC\main.p1" is out of date.
Executing: "D:\Program Files (x86)\HI-TECH Software\PICC\9.80\bin\picc.exe" --pass1 E:\PIC\main.c -q --chip=16F1823 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Warning [228] main.pre; 1.1 illegal character (0xFFFFFF84)
Error   [285] main.pre; 1.2 no identifier in declaration
Warning [374] main.pre; 1.2 missing basic type; int assumed
Error   [314] main.pre; 1.2 ";" expected
Warning [228] main.pre; 1.3 illegal character (0x1C)
Error   [285] main.pre; 1.4 no identifier in declaration
Warning [374] main.pre; 1.4 missing basic type; int assumed
Error   [314] main.pre; 1.4 ";" expected
Warning [228] main.pre; 1.5 illegal character (0x5)

使用特权

评论回复
沙发
发顺丰更大nc| | 2025-2-18 20:06 | 只看该作者
代码语法存在问题

使用特权

评论回复
板凳
zhoupxa| | 2025-2-18 23:25 | 只看该作者
编译预处理警告和错误,应该是源文件含有非法字符或未定义标识符,诸如此类


使用特权

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

本版积分规则

2093

主题

7854

帖子

11

粉丝