完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
本帖最后由 朝夕 于 2011-6-4 15:13 编辑
#include #define unit unsigned int ***it LED =P2^0; void Delay(unit a); void PORT_Init(void); void mian(void) { while(1) { LED=~LED; Delay(40000); } } void Delay(unit a) { unsigned int i; while(--a!=0) { for(i=0;i<600;i++); } } void PORT_Init(void) { P2MDIN=0x01; P2MDOUT=0x01; P2 |=0x01; } 错误信息如下: Build target 'Target 1'
linking... *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?MIAN?604 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?PORT_INIT?604 *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: MAIN MODULE: C:KEILC51LIBC51S.LIB (?C_INIT) *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: MAIN MODULE: C:KEILC51LIBC51S.LIB (?C_INIT) ADDRESS: 0010H Program Size: data=9.0 xdata=0 code=194 creating hex file from "p604"... "p604" - 0 Error(s), 4 Warning(s). |
|
相关推荐
2 个讨论
|
|
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 00:02 , Processed in 0.568076 second(s), Total 55, Slave 40 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号