Microsoft KB Archive/63624

= BUG: L1027 Error When Object File Name Includes a Parenthesis =

Article ID: 63624

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft LINK for MS-DOS 3.x
 * Microsoft LINK for MS-DOS 4.x
 * Microsoft LINK for MS-DOS 5.0x
 * Microsoft LINK for MS-DOS 5.1
 * Microsoft LINK for MS-DOS 5.13
 * Microsoft LINK for MS-DOS 5.15
 * Microsoft LINK for MS-DOS 5.3
 * Microsoft LINK for MS-DOS 5.31.009
 * Microsoft LINK for MS-DOS 5.5
 * Microsoft LINK for MS-DOS 5.6
 * Microsoft LINK for OS/2 5.01.21
 * Microsoft LINK for OS/2 5.03
 * Microsoft LINK for OS/2 5.05
 * Microsoft LINK for OS/2 5.1
 * Microsoft LINK for OS/2 5.3

-



This article was previously published under Q63624



SYMPTOMS
An attempt to link an application fails and Microsoft LINK generates the following message:

L1027: Unmatched left/right parenthesis



CAUSE
One or more object modules contains a parenthesis in its filename. If the object module is in the current directory, the error occurs when either of the following conditions is true:


 * If the object module has a left parenthesis as the first character of its name and a character other than a right parenthesis as the last character.
 * If the object module has a right parenthesis as the last character of its name and a character other than a left parenthesis as the first character.

If the object module is not in the current directory, the error occurs only when the second condition above is true.



STATUS
Microsoft has confirmed this to be a problem in each version of Microsoft LINK that supports overlays. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
Normally, when the names of one or more object modules are surrounded by parentheses, LINK places those modules into an overlay. Therefore, if a left (or right) parenthesis appears immediately before (or after) the name of an object module, LINK expects a matching right (or left) parenthesis immediately after (or before) the name. If the parentheses does not match, LINK generates a fatal error L1027.

For example, the following LINK command line causes an &quot;unmatched left parenthesis&quot; error if the object module ABC.OBJ is in the current directory:

link (abc;

However, if ABC.OBJ is not in the current directory, then the parenthesis is imbedded in the path and filename string. In this case, LINK does not generate an error, as shown below:

link temp\(abc;

Similarly, a file named ABC).OBJ does not generate an error if linked as follows:

link abc).obj;

However, if the .OBJ extension is omitted, as follows, the L1027 error occurs:

link abc);

If a left or right parenthesis is embedded in the name of a file, no error occurs. The following three LINK command lines each function correctly:

link a(bc;

link abc;

link a)bc;

Additional query words: 3.x 4.06 4.07 5.01.21 5.03 5.05 5.10 5.13 buglist5.50 buglist5.60 5.15 5.30 5.31.009 5.50

Keywords: kb16bitonly KB63624

-

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

© Microsoft Corporation. All rights reserved.