unable find resolve

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

hi to all

   

here i am uploading a snapshot of the error i have encounterd which i am unable to resolve would anybody please show me a way.

   

 

   

Regards

   

Rajendra

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Just insert the lines

   

 

   

#define FALSE 0

   

#define TRUE !FALSE

   

 

   

Bob

View solution in original post

0 Likes
9 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Just insert the lines

   

 

   

#define FALSE 0

   

#define TRUE !FALSE

   

 

   

Bob

0 Likes
Anonymous
Not applicable

 again the same error

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

Then please post your complete project here so that we all can have a look at.

   

To do so: in Creator go to

   

Build -> Clean Project

   

File -> Create workspace Bundle (minimal)

   

and then upload the resulting archieve here.

   

 

   

Bob

Anonymous
Not applicable

 Would the problem be the BOOL?

   

try adding the following at the beginning of your ,h file. See if that helps.

   

typedef bit BOOL;

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

Too bad, I've overlooked it:

   

BOOL is not defined. Since in PSoC3 boolean vars could really be bits which only is working on 8051 cores you should take care of that.

   

Easiest can be a

   

typedef uint8 BOOL;

   

 

   

Bob

Anonymous
Not applicable

 its working 

   

thank u Mr Bob and Mr lleung .  

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

For a PSoC5, it is much simpler:

   

#include <stdbool.h>
bool myValue=true;

   

and you are set.

   

(But this doesn't work for the PSoC3, the compiler doesn't know about such basic things 😞

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

@rajendra

   

You are always welcome, but please no "Mr."!

   

 

   

Bob

Anonymous
Not applicable

 Nice to hear your problem is solved. 🙂