|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Get Error A45: Using in-Line AssemblerInformation in this article applies to:
QUESTIONI'm trying to reference a global variable using in-line assembler, but when the project builds I get the following error:
The global variable is defined as extern in my header file. What's wrong? ANSWERYour C code does not reference that global variable, so the compiler does not add it to the .SRC file when it is built. In these rare cases, you will have to add the external declaration as in-line assembly code for that module as follows:
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.