Alejandro,

Is Tmp(1) supposed to be Tmp[1]? And it isn't clear about what you are trying to do with that part of the statement. Is there a missing operator? (+ or *)?

Regards,

Charlie H.

 
Science has proven what cat owners have always known - cats can understand what we say, the just don't care.


From: alejandro1957 <alejandro1957@users.sf.net>
To: [sdcc:discussion] <1865@discussion.sdcc.p.re.sf.net>
Sent: Monday, April 28, 2014 3:08 PM
Subject: [sdcc:discussion] error 12 called objet is not a function

What is?
I'm writing a code to communicate with a module HMC5883L(already working with GCBasic).

long EjeX,EjeZ,EjeY;
............................
EjeX=(X_Tmp[0]<<8)|X_Tmp(1);
EjeZ=(Z_Tmp[0]<<8)|Z_Tmp(1);
EjeY=(Y_Tmp[0]<<8)|Y_Tmp(1);

these last three lines in a void i give two error for each lines

error 12: called object is not a function
error 47: indirections to different types assignament

What am I doing wrong??


Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/sdcc/discussion/1865/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/