PRB: Space in /STACK Linker Switch Causes L1006 Error

ID Number: Q76077

1.x 2.x 3.x 4.x 5.x | 5.05 5.11 5.10 5.13 5.15

MS-DOS | OS/2

Summary:

SYMPTOMS

In all versions of the Microsoft Link Utility for MS-DOS and

OS/2, the following error is produced if a space is found within

the /STACK (/ST) command-line switch:

LINK : fatal error L1006: ST : stack size exceeds 65535 bytes

RESOLUTION

To eliminate the error, remove the space.

More Information:

This error may be caused by a space before or after the colon in the

/ST option. For example:

link /ST :4096 test.obj;

-or-

link /ST: 4096 test.obj;

Additional reference words: 1.08 1.10 2.00 2.01 2.10 2.40 2.41 2.44

2.50 3.00 3.01 3.02 3.04 3.05 3.06 3.51 3.55 3.60 3.61 3.64 3.65 3.69

4.06 4.07 4.10 5.01.20 5.01.21 5.02 5.03 5.05 5.10 5.11 5.13 5.15