MPLAB 编译出错!!!
#include<P30F6014A.h>//宏定义//#defineucharunsignedchar//#defineuintunsignedint//#define...
#include <P30F6014A.h>
//宏定义
//#define uchar unsigned char
//#define uint unsigned int
//#define ulong unsigned long
unsigned int counter;
unsigned int i;
int main(void)
{
TRISB=0;
counter=1;
while(1)
(
PORTB=counter;
counter=counter+1;
)
return 0;
}
编译总是出现以下错误:
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F6014A -x c -c "main.c" -o"main.o" -D__DEBUG -D__MPLAB_DEBUGGER_ICD2=1 -g
main.c: In function `main':
main.c:17: error: syntax error before ';' token
main.c:21:2: warning: no newline at end of file
Skipping link step. Not all sources built successfully.
你说的这个是否有返回值,这个不是问题,即使去掉也会出现一样的错误 展开
//宏定义
//#define uchar unsigned char
//#define uint unsigned int
//#define ulong unsigned long
unsigned int counter;
unsigned int i;
int main(void)
{
TRISB=0;
counter=1;
while(1)
(
PORTB=counter;
counter=counter+1;
)
return 0;
}
编译总是出现以下错误:
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F6014A -x c -c "main.c" -o"main.o" -D__DEBUG -D__MPLAB_DEBUGGER_ICD2=1 -g
main.c: In function `main':
main.c:17: error: syntax error before ';' token
main.c:21:2: warning: no newline at end of file
Skipping link step. Not all sources built successfully.
你说的这个是否有返回值,这个不是问题,即使去掉也会出现一样的错误 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询