ID: Q128553
1.50 1.51 1.52 WINDOWS kbtool kbbuglist
The information in this article applies to:
When 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: a0
Here are two possible workarounds:
-or-
Microsoft 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.
/* Compile options needed: none
*/ 
/* 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 KBCategory: kbtool kbbuglist KBSubcategory: LinkIss
Keywords          : kb16bitonly LinkIss kbbuglist
Version           : 1.50 1.51 1.52
Platform          : WINDOWSLast Reviewed: July 21, 1997