keil4 出现以下问题 5
#include<reg52.h>#defineunitunsignedint#defineucharunsignedcharsbitd1=P1^0;voiddelay(...
#include<reg52.h>
#define unit unsigned int
#define uchar unsigned char
sbit d1=P1^0;
void delay();
void main()
{
while(1)
{
d1=0;
delay();
d1=1;
delay();
}
}
void delay()
{
unit x,y;
for(x=100;x>0;x--)
for(y=200;y>0;y--);
}
出现
*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
SYMBOL: MAIN
MODULE: 子程序调用.obj (子程序调用)
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?MAIN?子程序调用
Program Size: data=11.0 xdata=0 code=98
Target not created
求大神解答 展开
#define unit unsigned int
#define uchar unsigned char
sbit d1=P1^0;
void delay();
void main()
{
while(1)
{
d1=0;
delay();
d1=1;
delay();
}
}
void delay()
{
unit x,y;
for(x=100;x>0;x--)
for(y=200;y>0;y--);
}
出现
*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
SYMBOL: MAIN
MODULE: 子程序调用.obj (子程序调用)
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?MAIN?子程序调用
Program Size: data=11.0 xdata=0 code=98
Target not created
求大神解答 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询