cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1

Anonymous
Not applicable

Hi,

   

I organized  a header file but I have error. What I'm missing.Can you look please?

0 Likes
3 Replies
HeLi_263931
Honored Contributor II

Can you tell us at least where the error occurs?

0 Likes
Anonymous
Not applicable

 Hi hli, 

   

Error is line 88 in herkulex.h file

0 Likes
HeLi_263931
Honored Contributor II

This line reads as

   
  int  checksum1(byte* data, int lenghtString); 
   

There is also no mentioning of 'HerkulexClass' in the lines before or after...

   

Are you sure the attached project is the one giving the error?

   

I get the compile error in line 46. And the reason is simple: you have a file defined as 'C', and have C++ code in it. You might want to look at cladlab.com/programming-2/how-to-use-c-with-psoc-creator about how to do C++ in Creator. I personally would suggest not to do it, it is not worth the hassle...

0 Likes