Keil™, An ARM® Company

Technical Support

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