FIX: L1035 Error When LIBRARY PRIVATELIB in .DEF File

Last reviewed: September 16, 1997
Article ID: Q87543
5.30 | 5.31 MS-DOS | OS/2 kbtool kberrmsg kbbuglist kbfixlist

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++ "Environment and Tools" manual for version 7.0 as follows:

   LIBRARY [<libraryname>] [PRIVATELIB]


Additional reference words: 5.30
KBCategory: kbtool kberrmsg kbbuglist kbfixlist
KBSubcategory: LinkIss
Keywords : kb16bitonly LINKIss kbbuglist kberrmsg kbfixlist kbtool
Version : 5.30 | 5.31
Platform : MS-DOS OS/2
Solution Type : kbfix


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