BUG: #pragma data_seg May Cause L1101 ErrorLast reviewed: July 18, 1997Article ID: Q128553 |
1.50 1.51 1.52
WINDOWS
kbtool kbbuglist
The information in this article applies to:
SYMPTOMSWhen you use #pragma data_seg() to name a data segment and the module includes a character pointer initialized to point to a string constant, the linker reports this fatal error:
test.obj(test.c) : fatal error L1101 : Invalid Object Module Object file offset: xxx Record type: a0NOTE: The error does not occur if the character pointer is not initialized.
RESOLUTIONHere are two possible workarounds:
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.
MORE INFORMATION
Sample Code to Reproduce Problem
/* Compile options needed: none */#pragma data_seg("TEST_DATA")
/* comment out this line to avoid the error */ char *pszMsg="L1101"; /* uncomment the following section and use it as a work-around */ /* char achMsg[] = "L1101"; char __far *pszMsg = achMsg; */ void main(){ }
|
Additional reference words: 1.50 1.51 1.52 5.6 5.60 5.60.220 5.60.339
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |