刚刚学用cw环境编程。想编个流水灯程序,但是却有错误,好像意思是语言类错误,提示是:[url=]Tips[/url]
Use a token listed in the error message. Check if you are using the right compiler language option. E.g. you may compile a file with C++ keywords, but are not compiling the file with C++ option set. Too many nested scopes
请高手指教!下面是代码:
#include <hidef.h> /* common defines and macros */
#include <MC9S12XS128.h> /* derivative information */
#pragma LINK_INFO DERIVATIVE "mc9s12xs128"
/*sbit pb0=PB0;
sbit pb1=PB1;
sbit _d=DDR */
#define leddata PORTB
#define led_d DDRB
void delay();
void main(void) {
/* put your own code here */
EnableInterrupts;