PRB: Link Error L1073: "File-segment Limit Exceeded" (34142)



The information in this article applies to:

  • Microsoft LINK for MS-DOS 3.x
  • Microsoft LINK for MS-DOS 5.01.20
  • Microsoft LINK for MS-DOS 5.01.21
  • Microsoft LINK for MS-DOS 5.03
  • Microsoft LINK for MS-DOS 5.05
  • Microsoft LINK for MS-DOS 5.1
  • Microsoft LINK for MS-DOS 5.13
  • Microsoft LINK for MS-DOS 5.15
  • Microsoft LINK for MS-DOS 5.3
  • Microsoft LINK for MS-DOS 5.31.009

This article was previously published under Q34142

SYMPTOMS

An attempt to link an application with Microsoft LINK fails and the linker displays the following message on the screen:
L1073: File-segment Limit Exceeded

CAUSE

The application contains more than the 255 segment limit imposed by the Microsoft Windows and OS/2 protected mode operating systems for each application and dynamic-link library (DLL).

RESOLUTION

Reduce the number of segments in the application. With Microsoft language compilers, modify the compiler command line to specify the /PACKCODE option, the /PACKDATA option, or both to place more information into each segment.

MORE INFORMATION

The linker creates a file segment for each group definition, non-packed logical segment, and set of packed segments.

Modification Type:MajorLast Reviewed:9/30/2003
Keywords:kb16bitonly KB34142