keil编译是显示Target not created,这是怎么回事?我的程序如下:#include#define uint unsigned int #define uchar unsigned charsbit L2=P1^0;void delay();void main(){while(1){L2=0;delay();L2=1;delay();}}void delay(){uint x,y;f

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/29 15:53:55
keil编译是显示Targetnotcreated,这是怎么回事?我的程序如下:#include#defineuintunsignedint#defineucharunsignedcharsbitL2

keil编译是显示Target not created,这是怎么回事?我的程序如下:#include#define uint unsigned int #define uchar unsigned charsbit L2=P1^0;void delay();void main(){while(1){L2=0;delay();L2=1;delay();}}void delay(){uint x,y;f
keil编译是显示Target not created,这是怎么回事?我的程序如下:
#include
#define uint unsigned int
#define uchar unsigned char
sbit L2=P1^0;
void delay();
void main()
{
while(1)
{
L2=0;
delay();
L2=1;
delay();
}
}
void delay()
{
uint x,y;
for(x=100;x>0;x--)
for(y=600;y>0;y--);
}
编译后显示如下:
Build target 'Target 1'
compiling lesson1-2.c...
compiling lesson1-3.c...
linking...
*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
SYMBOL: MAIN
MODULE: lesson1-3.obj (LESSON1_3)
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?MAIN?LESSON1_3
Program Size: data=9.0 xdata=0 code=88
Target not created
这是怎么回事?高手帮忙啊!

keil编译是显示Target not created,这是怎么回事?我的程序如下:#include#define uint unsigned int #define uchar unsigned charsbit L2=P1^0;void delay();void main(){while(1){L2=0;delay();L2=1;delay();}}void delay(){uint x,y;f
怎么有2个C文件?关掉一个.