BUG: LINK Error L1101 with Public Weak ExternLast reviewed: December 7, 1994Article ID: Q123666 |
The information in this article applies to:
SYMPTOMSThe linker produces the following error:
fatal error L1101: invalid object modulewhen you assemble and link the following code, which contains a public weak extern:
.model small .data y=1 public y extern x(y):abs END CAUSEAn incomplete record is placed in the object file:
COMENT Weak External Pairs Weak External : Default Resolution "x" :Notice the abscence of the alternate weak name y.
RESOLUTIONTo work around the problem, use an external weak extern:
extern y:abs extern x(y):abs ; extern x(y):abs same results as extern x(y):procThis places the correct coment record is placed in the .OBJ file:
COMENT Weak External Pairs Weak External : Default Resolution "x" : "y" STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional reference words: 6.10 6.11 buglist6.10 buglist6.11
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |