[問題] keil c 問題

作者: l634259 (mat)   2013-04-02 23:18:39
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
#include <reg51.h>
sbit RA0 = P2^0;
sbit RA1 = P2^1;
sbit RA2 = P2^2;
sbit RA3 = P2^3;
sbit RA4 = P2^4;
sbit RA5 = P2^5;
sbit RC0 = P1^0;
sbit RC1 = P1^1;
int A;
//=====================
main()
{
RA0=1;
RA1=1;
RA2=1;
RA3=1;
RA4=1;
RA5=1;
RC0=0;
RC1=0;
while(1){ if(RA0==0 )
{ A=1; }
if(RA1==0 )
{ A=2; }
if(RA2==0 )
{ A=3; }
if( RA3==1 && RA4==1 && RA5==1&&A==1)
{RC0=1;
RC1=0;
}
if( RA3==1 && RA4==0 && RA5==1&&A==1)
{RC0=0;
RC1=1;
}
if(A==1 && RA3==0)
{RC0=0;
RC1=0;
}
if( RA4==1 && RA3==0 && RA5==1&&A==2)
{RC0=0;
RC1=1;
}
if(RA4==1 && RA4==1 && RA5==0&&A==2)
{RC0=1;
RC1=0;
}
if(RA1==1 && RA4==0)
{RC0=0;
RC1=0;
}
if( RA3==1 && RA4==0 && RA5==1&&A==3)
{RC0=0;
RC1=1;
}
if(RA2==1 && RA5==0)
{RC0=0;
RC1=0;
}
}
}
為甚麼會出現2個警告程式哪出錯了??
作者: cwl751005 (緯)   2013-04-03 00:12:00
妳是不是沒把檔案匯入:P
作者: drag (京都念慈庵,賈詡念費翔)   2013-04-09 14:06:00
看起來好像project setting沒設定好晶片?(loader找不到?)還有我不確定是不是要"void" main()...
作者: AriesLee (莫忘初衷)   2013-04-12 13:31:00
"void" 可以不用加,沒回傳值可省略
作者: jiannan1828 (我也不願意)   2013-04-24 02:57:00
Header可以用regx51.h 或用89X51.h

Links booklink

Contact Us: admin [ a t ] ucptt.com