PRB: L1006 Error When /STACK Option Contains a Space (76077)



The information in this article applies to:

  • Microsoft LINK for MS-DOS 1.x
  • Microsoft LINK for MS-DOS 2.x
  • Microsoft LINK for MS-DOS 3.x
  • Microsoft LINK for MS-DOS 4.x
  • Microsoft LINK for MS-DOS 5.0x
  • Microsoft LINK for MS-DOS 5.1x
  • Microsoft LINK for MS-DOS 5.2x
  • Microsoft LINK for MS-DOS 5.3x
  • Microsoft LINK for MS-DOS 5.5
  • Microsoft LINK for MS-DOS 5.6
  • Microsoft LINK for OS/2 5.0x
  • Microsoft LINK for OS/2 5.1
  • Microsoft LINK for OS/2 5.11
  • Microsoft LINK for OS/2 5.13
  • Microsoft LINK for OS/2 5.15

This article was previously published under Q76077

SYMPTOMS

An attempt to link an application fails and Microsoft LINK generates the following message:
LINK : fatal error L1006: ST : stack size exceeds 65535 bytes

CAUSE

The linker command line includes the /ST[ACK] option with a space between the option name and the numeric parameter.

RESOLUTION

To eliminate the error, edit the command line to remove the space.

MORE INFORMATION

This error is caused by a space character before or after the colon in the /STACK linker option. Both of the following command lines cause the L1006 error:
link /ST :4096 test.obj;
link /ST: 4096 test.obj;

Modification Type:MajorLast Reviewed:10/23/2003
Keywords:kb16bitonly KB76077