|
|||||||||||
|
Technical Support Support Resources
Product Information |
C51: Error 200 (Left Side of '.' Requires Struct/Union)Information in this article applies to:
SYMPTOMSC51 Version 6 generates the following error message when I compile my old Version 5 code.
What's wrong? CAUSEC51 V5.x accepted some structure pointer operations without generating syntax errors. For example: The following code works fine in C51 V5.x.
However, it generates the above error in C51 V6.x. RESOLUTIONTo fix this problem, check your structure pointer accesses to be sure that the points-to operator (->) is used instead of the dot operator (.). In the above example, the syntax sp.v needs to be replace with sp->v.
SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
|||||||||||
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.