KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q45619: Linker Errors L4013, L2048, and L4038: Overlaying in OS/2

Article: Q45619
Product(s): See article
Version(s): 5.01.20 | 5.03
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | S_C H_Fortran | mspl13_basic
Last Modified: 21-JUN-1989

The linker does not overlay files when linking with protected mode
run-time libraries. If told to overlay a program that is being linked
with a protected mode run-time library, the linker responds with one
or more of the following errors:

   LINK : warning L4013: invalid option for new-format executable file
   ignored
   LINK : error L2048: Microsoft Overlay Manager module not found
   LINK : warning L4038: program has no starting address

possibly followed by (in DOS):

   run-time error R6001
   - null pointer assignment

or possibly followed by (in OS/2):

   A general protection (GP) fault. It may also go into an infinite
   loop after creating the temporary file (for large executables).

The workaround is to create two versions of the executable, an
overlayed DOS version and a non-overlayed OS/2 version.

Microsoft is researching this problem and will post new information as
it becomes available.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.