Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 8 months ago.
What is this error?
What is this error?
Question relating to:
1 Answer
8 years, 8 months ago.
It's probably something like trying to multiply a number by a pointer. e.g.
int y = 5; int *p = &y; int x = 4*p;
results in an error 848 on line 3.
Changing it to use the value p points to:
int y = 5; int *p = &y; int x = 4*(*p);
results in it compiling OK and setting x to 20.
If that doesn't seem to fix the problem then please supply the line that causes the error and the declarations of any variables used in that line otherwise it's hard to help you fix it..
"848: expression must have arithmetic or enum type" are you able to share an example of how to produce this error?
posted by Stephen Paulger 03 Aug 2015