Error Expected ']' before token-Objective C
I am new to Objective C. I am getting errors when declaring char tempbuf[RMH_EVENT+1];
RMH_EVENT
is a macro containing the value 60
. Why is it showing me the error ?
I have declared another char above it as char buf[512];
in the same way as I declared the tempbuf, but it's not showing me 开发者_运维问答any error.Without seeing the source it's hard to tell what the problem is, but I'm guessing you probably did something like this:
#define RMH_EVENT 60;
instead of:
#define RMH_EVENT 60
精彩评论