PRB: L1093, L1083, L1080, or L1092 Error, "-" in Link Options (50333)



The information in this article applies to:

  • 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 Q50333

SYMPTOMS

An attempt to link an application fails and Microsoft LINK generates one of the following messages:
fatal error L1093: -xxx.obj : object file not found
fatal error L1083: C:xxx.exe : cannot open run file
fatal error L1080: cannot open list file
fatal error L1092: cannot open module-definition file
warning L4051: xxx.lib : cannot find library
warning L4046: module name different from output file name

CAUSE

One or more options on the LINK command line begin with a dash (-) character instead of the LINK option character, a forward slash (/).

RESOLUTION

Modify the LINK command line to specify linker options with a forward slash.

MORE INFORMATION

The following sample makefile demonstrates this situation.

Sample Code


# NMAKE options required: None

ALL : test.exe

test.obj : test.c test.h
   cl -c -Zi -G2sw -W3 test.c

test.exe : test.obj test.def
   link test, -CO -align:16, NUL, , ;
				

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