Q57653: U1013 Link: Error 2: Not Enough Memory for Exec in M
Article: Q57653
Product(s): See article
Version(s): 1.00 1.02
Operating System(s): MS-DOS
Keyword(s): ENDUSER | s_nmake s_make | mspl13_basic
Last Modified: 23-JAN-1991
Question:
In DOS, I am spawning either MAKE or NMAKE within the Microsoft Editor
(M), and I receive an error message from the Editor on the status line
saying "U1013 : Link file.obj: Error 2." What does this error mean and
how do I get around it?
Response:
The U1013 error means that one of the procedures called by MAKE or
NMAKE returned a nonzero error code. In this case, the error can be
understood as M's equivalent of a "Not enough memory for exec" error,
meaning that there is not enough memory for the parent process to
execute a child process. The error typically occurs when you spawn
either MAKE or NMAKE from within the Editor, the compilation is
complete, and the link process is beginning.
If you receive this error, you may be able to free up memory by
removing any TSRs and unnecessary device drivers. However, the best
workaround would be to use MAKE or NMAKE to link your file outside of
M, because M will have problems exec'ing the linker in any sizable
application due to the size of LINK and MAKE.
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.