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

Last reviewed: July 17, 1997
Article ID: Q50333
5.0x 5.1x 5.2x 5.3x 5.50 5.60 | 5.0x 5.10 5.11 5.13 5.15
MS-DOS                        | OS/2
kbtool kbcode kberrmgs kbprb

The information in this article applies to:

  • Microsoft LINK for MS-DOS, versions 5.0x, 5.1x, 5.2x, 5.3x, 5.5, and 5.6
  • Microsoft LINK for OS/2, versions 5.0x, 5.1, 5.11, 5.13, and 5.15

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, , ;


Additional reference words: 5.01.20 5.01.21 5.02 5.03 5.05 5.10 5.11
5.13 5.15 5.20 5.30 5.31.009 5.50 5.60
KBCategory: kbtool kbcode kberrmsg kbprb
KBSubcategory: LinkIss
Keywords : kb16bitonly


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 17, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.