DOCERR: L1008 Error from Incorrect /SEGMENTS Option Syntax (80130)



The information in this article applies to:

  • 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.2
  • 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 Q80130

SYMPTOMS

An attempt to link an application fails and Microsoft LINK generates the following message:
LINK : fatal error L1008 : Segment limit set too high.

CAUSE

The LINK command line includes the /SE[GMENTS] option and the :<number> parameter is missing, or white space appears before or after the colon (:) character.

RESOLUTION

Modify the LINK command line to use the correct syntax for the option, as follows:
   /SE[GMENTS]:number
				

MORE INFORMATION

The following references document the /SEGMENTS option incorrectly:

  • Microsoft FORTRAN "Environment and Tools" manual for version 5.1, page 384.
  • Microsoft FORTRAN version 5.1 for MS-DOS online help.
  • Microsoft Macro Assembler "Programmer's Guide" manual for version 6.0, page 359.
  • Microsoft Macro Assembler version 6.0 for MS-DOS (MASM) online help.
  • Microsoft QuickC for Windows "Toolkit" manual for version 1.0, page 217.
  • Microsoft QuickC version 1.0 for Windows (QC/Win) online help.
Each of these references document the /SEGMENTS option as follows
   /SE[GMENTS][:number]
				
indicating that the :<number> parameter is optional.

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