The information in this article applies to:
SYMPTOMSThe Microsoft Macro Assembler (MASM) version 6.0 may produce an invalid object file, generating the following error message at link time: The error occurs when a number of nested UNIONS and STRUCTURES are used. RESOLUTIONA work around is to rearrange the order of the outer-most structure. The sample code below illustrates this. STATUSMicrosoft has confirmed this to be a problem in MASM version 6.0. This problem was corrected in MASM version 6.0a. MORE INFORMATION
The sample code below illustrates this problem. If the MASM switch /Fl
is used to generate a listing file, it can be seen that the assembler
generates an offset for "BAD" of 001E in the structure ST1. Because
this structure is a copy of the previous structure (ST0), the offset
for BAD in each structure should be the same, the correct offset is
0014. No assembler error or warning is generated, but when the .OBJ
file is linked, the L1103 error is generated.
Sample Code
Additional query words: s_link 6.00 buglist6.00 fixlist6.00a
Keywords : |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |