prj.M0120: missing ";" before HerkulexClass error!!!

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,

   

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

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

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
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

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