I use 33fj128MC804, I met a problem here.
Please see the code below.
Code:
struct rp
{
int8 lowByte;
int8 upperByte;
};
struct rp rp1;
#word rp1=0x06a4;
rp1.lowByte=0x17;//<----- This is line 17
but when i compile it, it always said
Error 48 "C:\PROJECT\ppin.c" Line 17(1,8): Expecting a (
Can anybody give me a help? Thanks
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
Posted: Wed Jan 26, 2011 12:37 am
compiler directives like #word must be written without a semicolon delimiter
Code:
#word rp1=0x06a4
cchappyboy
Joined: 03 Dec 2008 Posts: 45
Posted: Wed Jan 26, 2011 9:58 am
yes. you are right. but actually in my program file there isn't this ";" , it is a mistake when i post in here.
So the problem is still there. Please give me a help!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum