LINK Help (linker.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
L2041
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     LINK Error L2041
 
     stack plus data exceed 64K
 
     If the total of near data and requested stack size exceeds 64K,
     the program will not run correctly. LINK checks for this
     condition only when /DOSSEG is enabled, which is the case in the
     library startup module for Microsoft language libraries.
 
     For object modules compiled with the Microsoft C or FORTRAN
     optimizing compilers, recompile with the /Gt command-line option
     to set the data-size threshold to a smaller number.
 
     This is a fatal LINK error.
                                    -♦-