Error

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

hi to all,

   

I am getting the error and unable to over come .can any suggest .

   

thanks

   

PRP

   

 

   

----------------------------------------------------------------------------------------------------------------------------------------------------------

   

0 Likes
1 Solution
Anonymous
Not applicable

you only need to typedef once.

   

I'll normally put it at the begining.

   

typedef uint8 BOOL;

   

 

   

from that on you just use BOOL anywhere such as

   

BOOL boolData = 1; 

View solution in original post

0 Likes
4 Replies
Anonymous
Not applicable

you only need to typedef once.

   

I'll normally put it at the begining.

   

typedef uint8 BOOL;

   

 

   

from that on you just use BOOL anywhere such as

   

BOOL boolData = 1; 

0 Likes
Anonymous
Not applicable

should be 

   

BOOL boolData = TRUE;

Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

There is no equal sign (=) in a typedef.

   

The syntax follows a variable declaration

   

 

   

typedef KnownType Newtype;

   

see here: http://publications.gbdirect.co.uk/c_book/chapter8/typedef.html

   

 

   

Happy coding

   

Bob

Anonymous
Not applicable

its working

   

thanks

0 Likes