Microsoft KB Archive/87543

{|
 * width="100%"|

FIX: L1035 Error When LIBRARY PRIVATELIB in .DEF File

 * }

Q87543

-

The information in this article applies to:


 * Microsoft LINK for MS-DOS, version 5.3
 * Microsoft LINK for OS/2, version 5.31

-

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

L1035: syntax error in module-definition file

CAUSE
The module-definition file includes the PRIVATELIB modifier to the LIBRARY statement. LINK incorrectly expects the PRIVATELIB modifier to be part of the NAME statement.

STATUS
Microsoft has confirmed this to be a problem in LINK version 5.3 for MS-DOS (distributed with Microsoft C/C++ version 7.0) and with LINK version 5.31 for OS/2. This problem was corrected in LINK version 5.31.009 (distributed with the C/C++ version 7.0a patch disk). To obtain the patch disk, obtain a disk from Microsoft. To obtain a disk in the United States, call Microsoft Product Support Services at (206) 454-2030. Outside the United States, contact the Microsoft subsidiary for your area. To locate your subsidiary, go to the Microsoft Web site http://www.microsoft.com/worldwide/default.htm

MORE INFORMATION
The correct syntax for the LIBRARY statement is documented on page 613 of the Microsoft C/C++ &quot;Environment and Tools&quot; manual for version 7.0 as follows:

"LIBRARY [ ] [PRIVATELIB]" Additional query words: 5.30

Keywords : kberrmsg kb16bitonly

Issue type :

Technology : kbAudDeveloper kbZNotKeyword3 kbLINKSearch kbLINK530DOS kbLINK531OS2