|
|||||||||||
Technical Support Support Resources
Product Information |
BL51: Error 118 (Erroneous Reference to External Variables)Information in this article applies to:
QUESTIONThe following C file (C:\MYCODE\J1.C)...
generates the following error when compiled and linked with the Keil 8051 tools:
What is wrong? ANSWERYour program is technically correct. The problem lies in the object module format of the object files created by the Keil C Compiler. The object files are created according to the OMF-51 object module format specified by Intel. This object module format does not allow lowercase variable names. Therefore, all public variables are treated as uppercase. When you create 2 public symbols with the same name but with different cases, the linker complained about ERRONEOUS EXTERNALS. Change the name of one of the variables to avoid this problem. MORE INFORMATION
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.