ARM Technical Support Knowledge Articles

DUPLICATE DECLARATION IN INCLUDE FILE

Applies to: A51 Macro Assembler

Answer

QUESTION

When I include the REG552.INC file in my A51 Assembler program, I get a redefinition error. What's wrong?

ANSWER

The basic 8051 SFRs are predefined by the A51 Assembler. When you include a file that re-defines them, you must use the NOMOD51 directive to force the assembler to exclude the predefined names.

Article last edited on: 2004-05-08 15:22:42

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential