|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Initializing an Absolutely Located VariableInformation in this article applies to:
QUESTIONI have declared a global variable using:
However, upon compilation I get the following error:
How can I initialize an absolutely located variable? ANSWERYou cannot both specify a location for a variable and initialize it at the same time. The best solution is to initialize the variable separately in an initialization routine. For example:
which is then called from the main function. MORE INFORMATION
SEE ALSO
Last 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.