完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
编译结果如下: 烦请各位大神多多指点 可能错误有点低级 再下愚昧 现在不清楚 希望大家说清楚点 谢谢了
清除: 删除的文件 "D:PIClianxisecond.cce".清除: 删除的文件 "D:PIClianxisecond.mcs".清除: 完成. Executing: "C:HT-PICBINPICC.EXE" -C -E"second.cce" "second.c" -O"second.obj" -Zg9 -O -ASMLIST -Q -MPLAB -16F877 Warning[000] D:PIClianxisecond.c 42 : Missing newline Error[000] D:PIClianxisecond.c 2 : only functions may be void Error[000] D:PIClianxisecond.c 2 : ; expected Error[000] D:PIClianxisecond.c 3 : only functions may be void Error[000] D:PIClianxisecond.c 3 : ; expected Error[000] D:PIClianxisecond.c 4 : only functions may be void Error[000] D:PIClianxisecond.c 4 : only functions may be qualified interrupt Error[000] D:PIClianxisecond.c 4 : ; expected Error[000] D:PIClianxisecond.c 6 : only functions may be void Error[000] D:PIClianxisecond.c 6 : ; expected Error[000] D:PIClianxisecond.c 7 : no identifier in declaration Warning[000] D:PIClianxisecond.c 7 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 7 : ; expected Warning[000] D:PIClianxisecond.c 9 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 9 : type redeclared Error[000] D:PIClianxisecond.c 9 : ; expected Error[000] D:PIClianxisecond.c 10 : no identifier in declaration Warning[000] D:PIClianxisecond.c 10 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 10 : ; expected Error[000] D:PIClianxisecond.c 11 : no identifier in declaration Warning[000] D:PIClianxisecond.c 11 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 11 : ; expected Error[000] D:PIClianxisecond.c 12 : no identifier in declaration Warning[000] D:PIClianxisecond.c 12 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 12 : ; expected Error[000] D:PIClianxisecond.c 14 : only functions may be void Error[000] D:PIClianxisecond.c 14 : ; expected Error[000] D:PIClianxisecond.c 15 : no identifier in declaration Warning[000] D:PIClianxisecond.c 15 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 15 : ; expected Warning[000] D:PIClianxisecond.c 17 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 17 : type redeclared Warning[000] D:PIClianxisecond.c 18 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 18 : type redeclared Warning[000] D:PIClianxisecond.c 19 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 19 : type redeclared Warning[000] D:PIClianxisecond.c 20 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 20 : type redeclared Warning[000] D:PIClianxisecond.c 21 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 21 : type redeclared Warning[000] D:PIClianxisecond.c 22 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 22 : type redeclared Warning[000] D:PIClianxisecond.c 23 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 23 : type redeclared Warning[000] D:PIClianxisecond.c 24 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 24 : type redeclared Error[000] D:PIClianxisecond.c 26 : no identifier in declaration Warning[000] D:PIClianxisecond.c 26 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 26 : ; expected Error[000] D:PIClianxisecond.c 28 : only functions may be void Error[000] D:PIClianxisecond.c 28 : only functions may be qualified interrupt Error[000] D:PIClianxisecond.c 28 : ; expected Error[000] D:PIClianxisecond.c 29 : no identifier in declaration Warning[000] D:PIClianxisecond.c 29 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 29 : ; expected Warning[000] D:PIClianxisecond.c 31 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 31 : type redeclared Error[000] D:PIClianxisecond.c 31 : identifier redefined: TMR1ON (from line 24) Warning[000] D:PIClianxisecond.c 32 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 32 : type redeclared Warning[000] D:PIClianxisecond.c 33 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 33 : type redeclared Warning[000] D:PIClianxisecond.c 34 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 34 : type redeclared Error[000] D:PIClianxisecond.c 34 : identifier redefined: TMR1ON (from line 31) Warning[000] D:PIClianxisecond.c 35 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 35 : type redeclared Error[000] D:PIClianxisecond.c 35 : constant expression required Error[000] D:PIClianxisecond.c 36 : no identifier in declaration Warning[000] D:PIClianxisecond.c 36 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 36 : ; expected Error[000] D:PIClianxisecond.c 38 : only functions may be void Error[000] D:PIClianxisecond.c 38 : ; expected Error[000] D:PIClianxisecond.c 39 : no identifier in declaration Warning[000] D:PIClianxisecond.c 39 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 39 : ; expected Warning[000] D:PIClianxisecond.c 41 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 41 : type redeclared Warning[000] D:PIClianxisecond.c 41 : line does not have a newline on the end Error[000] D:PIClianxisecond.c 42 : no identifier in declaration Warning[000] D:PIClianxisecond.c 42 : missing basic type: int assumed Error[000] D:PIClianxisecond.c 42 : ; expected Halting build on first failure as requested. BUILD FAILED: Thu Jul |
|
相关推荐
|
|
这是编写的源程序
#include void initPORTB{void}; void initCCP1{void}; void interrupt CCP1INT{void}; void main{} { initPORTB{}; initCCP1{}; while{1} {} } void initCCP1{} { TRISC=0x00; T1CON=0x00; CCPR1H=0x61; CCPR1L=0xa8; CCP1CON=0x0a; CCP1IE=1; PEIE=1; GIE=1; TMR1ON=1; } void interrupt CCP1INT{} { CCP1IF=0; TMR1ON=0; TMR1H=0x00; TMR1L=0x00; TMR1ON=1; RB0=!RB0; } void initPORTB{} { TRISB=0xfe; PORTB=0x00; } |
|
|
|
|
|
只有小组成员才能发言,加入小组>>
求解外围电路实现的是4脚给持续低电平复位并正常工作,高电平不工作的原因
2084 浏览 1 评论
3629 浏览 3 评论
PIC1946程序有一个变量在运行过程中恢复初始值其他变量保持不变
2336 浏览 2 评论
2763 浏览 0 评论
PIC16F1825的RC5引脚,在主程序中操作无效,在中断中可以改变是为什么?
4024 浏览 5 评论
972浏览 0评论
用XC8编译PIC18F25K80时提示下面Error,求怎么解决这个问题
6358浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-2 18:18 , Processed in 0.744759 second(s), Total 76, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号