你好,我刚安装了IAR编译器,然后新建工作区->工程->c main函数
#include "io430.h"
#include "io430G2231.h"
int main( void )
{
unsigned int i;
// Stop watchdog timer to prevent time out reset`
WDTCTL = WDTPW + WDTHOLD;
P1DIR |= BIT0; //设置端口方向
while(1)
{
P1OUT ^= BIT0; //端口输出翻转
for(i = 0; i < 5000; i++);
}
}
编译出错
Building configuration: myTest - Debug
Updating build tree...
Linking
Warning[w60]: The entry point label "__program_start" was not found in any input file. The
image will not have an entry point.
Error[e46]: Undefined external "__program_start" referred in ?ABS_ENTRY_MOD ( )
Error while running Linker
Total number of errors: 1
Total number of warnings: 1
请问这是为什么啊?我该怎么改呢?谢谢!