Keil Logo

LX51: AVOIDING WARNING 7 (MODULE NAME NOT UNIQUE)


Information in this article applies to:

  • C51 Version 7

QUESTION

I'm following the example in the document GENERAL: CALLING BOOT LOADER FUNCTIONS FROM USER APPLICATION and I've added the boot code (object file) to the main code with the option Link Publics Only.

However, I new receive the following linker message:

WARNING L7: MODULE NAME NOT UNIQUE

on the STARTUP module. How can I avoid this warning?

ANSWER

You can give a different module name to the STARTUP file that is part of the main application by changing the source line:

NAME    ?C_STARTUP

to

NAME    ?C_STARTUP_MAIN

The assembler directive NAME defines the module name and avoids the name conflict at the linker level.

MORE INFORMATION

  • Refer to NAME in the Ax51 User's Guide.

SEE ALSO

Last Reviewed: Monday, July 18, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

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.