PRB: Linker Generates L2048 for Overlaid ProgramsLast reviewed: July 17, 1995Article ID: Q112343 |
The information in this article applies to:
SYMPTOMSLINK.EXE versions 5.3 and later provided with Microsoft C/C++ products support both the dynamic MOVE style overlays and the old method that uses the Static Overlay Manager. FORTRAN customers who attempt to link overlaid programs using these versions of the linker may encounter the following errors:
LINK : error L2048: Microsoft Overlay Manager module not found LINK : warning L4038: program has no starting address CAUSEThe linker versions 5.3x and later support MOVE overlays by default. The MOVE overlay support code is not present in the FORTRAN run-time library, and therefore these errors are generated.
RESOLUTIONThere are three ways to resolve this problem:
MORE INFORMATIONThe following code samples and the makefile demonstrate how to use MOVE overlays with FORTRAN modules:
Sample Code #1A.FOR
print*, 'in root' call b stop 'terminating in root' end Sample Code #2B.FOR
subroutine b print*, 'in b' call c return end Sample Code #3C.FOR
subroutine c print*, 'in c' return end Sample Code #4MAKEFILE all: a.exe .for.obj: fl /c /Zi /Od $<a.exe: a.obj b.obj c.obj link a (b) (c) /CO /NOD /NOE,,nul,llibc7 llibfor7; Additional Reference Words: Visual 1.00 1.50 5.31.009 5.50 5.60 |
KBCategory: kbtool kberrmsg kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |