FIX: LINK May Incorrectly Generate L2049 for Resource-Only DLL (73663)
The information in this article applies to:
- Microsoft LINK for MS-DOS 5.03
- Microsoft LINK for MS-DOS 5.05
- Microsoft LINK for MS-DOS 5.1
- Microsoft LINK for MS-DOS 5.11
- Microsoft LINK for OS/2 5.03
- Microsoft LINK for OS/2 5.05
- Microsoft LINK for OS/2 5.1
- Microsoft LINK for OS/2 5.11
This article was previously published under Q73663 SYMPTOMS
The Microsoft LINK utility versions 5.03, 5.05, 5.1, and 5.11 will
generate the following error if you attempt to link a resource-only
DLL that contains no code or data:
LINK: error L2049: no segments defined
Although a valid DLL is created in this case, these versions of LINK
set the error bit in the DLL's header and return an error code to the
calling program.
RESOLUTION
Beginning with LINK version 5.13, the L2049 error was converted to a
warning and the error bit is no longer set in the output file. To work
around the problem with LINK 5.03, 5.05, 5.1, or 5.11, the EXEHDR
utility may be used to reset the error bit in the header.
STATUS
Microsoft has confirmed this to be a problem in LINK versions 5.03, 5.05,
5.1, and 5.11. This problem was corrected in LINK version 5.13.
Modification Type: | Major | Last Reviewed: | 10/23/2003 |
---|
Keywords: | kb16bitonly kbfix KB73663 |
---|
|