Microsoft KB Archive/49871

= 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 &quot;link&quot; must be in all lowercase letters. If the word &quot;link&quot; 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 &quot;/&quot; (forward slash) or the &quot;-&quot; (hyphen).



RESOLUTION
Retype the command line, ensuring &quot;link&quot; 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

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.