FIX: A2138 Error--Structure Member Span-Dependent Equate (94408)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 6.0
- Microsoft Macro Assembler (MASM) 6.0a
- Microsoft Macro Assembler (MASM) 6.0b
- Microsoft Macro Assembler (MASM) 6.1
- Microsoft Macro Assembler (MASM) 6.1a
This article was previously published under Q94408 SYMPTOMS
The process of assembling an application fails and the assembler
generates an A2138 error message.
CAUSE
A structure member is initialized with an equate value that is
computed as the difference between the addresses of two labels in the
code (a span-dependent value).
RESOLUTION
To work around this problem, code an expression that evaluates to the
difference between the addresses of the two labels. Initialize the
structure using the expression.
STATUS
Microsoft has confirmed this to be a problem in MASM versions 6.0,
6.0a, 6.0b, 6.1, and 6.1a. This problem was corrected in MASM for
MS-DOS version 6.11.
Modification Type: | Major | Last Reviewed: | 10/16/2003 |
---|
Keywords: | kbfix KB94408 |
---|
|