*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: MAIN
MODULE: D:\KEIL\C51\LIB\C51S.LIB (?C_INIT)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: MAIN
MODULE: D:\KEIL\C51\LIB\C51S.LIB (?C_INIT)
ADDRESS: 0010H
Program Size: data=12.0 xdata=0 code=211
creating hex file from "light"
"light" - 0 Error(s), 2 Warning(s).
我的.c文件已经加入项目中,但是任然存在该问题。
以下是源代码
#include<reg52.h>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
void delay(uchar);
void main(viod)
{
uchar LedTemp;
LedTemp=0xfe;
while(1)
{
P1=LedTemp;
LedTemp=_crol_(LedTemp,1);
delay(255);delay(255);delay(255);delay(255);
}
}
void delay(uchar x)
{
uchar k;
while(x--)
for(k=0;k<125;k++);
}
有无朋友解决下,我按照别人的流程一步一步来,但是我的却不能运行成功,求解!