PRB: Mixing Case of LINK Option Causes Error L1093 or D4002

Last reviewed: July 24, 1997
Article ID: Q49871
The information in this article applies to:
  • The Microsoft C/C++ Compiler (CL.EXE) included with: - Microsoft C for MS-DOS, versions 6.0, 6.0a, 6.0ax - Microsoft C for OS/2, versions 6.0, 6.0a - Microsoft C/C++ for MS-DOS, version 7.0 - Microsoft Visual C++ for Windows, versions 1.0, 1.5 - Microsoft Visual C++ 32-bit Edition, versions 1.0, 2.0, 4.0, 5.0

SYMPTOMS

When specifying linker options from the CL command line, the word "link" must be in all lowercase letters. If the word "link" is not all lowercase, the error that occurs is either:

   Command line warning D4002 : ignoring unknown flag '-xxxx'

   -or-

   LINK : fatal error L1093: xxxx.OBJ : object not found

NOTE: xxxx is the four letters keyed in after the "/" (forward slash) or the "-" (hyphen).

RESOLUTION

Retype the command line, ensuring "link" is typed in all lowercase letters.

MORE INFORMATION

For example, issuing the following command from the MS-DOS, OS/2, or Windows NT command prompt

      cl myfile.c /Link mylib.lib

produces the following error:

   Command line warning D4002 : ignoring unknown flag '-Link'


Additional query words: 8.00 8.00c 9.00
Keywords : CLIss kbfasttip
Version : 6.0 6.0a 6.0ax 7.0 1.0 1.5 2.0 4
Issue type : kbprb


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 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.