Microsoft KB Archive/49871

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Knowledge Base


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

Article ID: 49871

Article Last Modified on 7/5/2005



APPLIES TO

  • Microsoft C Professional Development System 6.0a
  • Microsoft C Professional Development System 6.0a
  • Microsoft Visual C++ 1.0 Professional Edition
  • Microsoft Visual C++ 1.5 Professional Edition
  • Microsoft Visual C++ 1.0 Professional Edition
  • Microsoft Visual C++ 2.0 Professional Edition
  • Microsoft Visual C++ 4.0 Standard Edition
  • Microsoft Visual C++ 5.0 Standard Edition
  • Microsoft Visual C++ 6.0 Service Pack 5



This article was previously published under Q49871


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 \* Swept by: v-aarod, 9/4/95 kbsweptvc50 rodneyr 7/24/97

Keywords: kbprb kbcompiler KB49871