PRB: Linker Error L2041: "Stack Plus Data Exceeds 64K"Last reviewed: July 17, 1997Article ID: Q50130 |
3.65 3.69 4.x 5.0x 5.1x 5.2x 5.3x 5.50 5.60 | 5.0x 5.10 5.11 5.13 5.15
MS-DOS | OS/2kbtool kberrmsg kberrmgs kbprb The information in this article applies to:
SYMPTOMSAn attempt to link an application fails and Microsoft LINK generates the following message:
L2041 stack plus data exceeds 64K CAUSEThe application has more than 64K of stack and data to put into DGROUP (the default data segment).
RESOLUTIONTo address this situation, perform one or more of the following three steps:
MORE INFORMATIONEven though a nonfatal error indicates a problem in the executable file, LINK produces the executable file, unless linking with the /ONERROR:NOEXE linker switch. /ONERROR:NOEXE is available with Microsoft C/C++ 7.0, and Visual C++ for Windows versions 1.0 and 1.5. Each non- fatal error message has the following format:
location : error L2xxx: messagetextIn a nonfatal error message, the "location" field names the input file associated with the error or "LINK" if there is no input file. If the input file is an object module or library file and it has a module name, the module name is also given, enclosed in parentheses.
REFERENCESFor more information on error L2041, see one of the following references:
|
Additional reference words: 3.65 3.69 4.06 4.07 4.10 5.01.20 5.01.21
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |