FIX: L1035 Error When LIBRARY PRIVATELIB in .DEF File

ID: Q87543

5.30 | 5.31 MS-DOS | OS/2

The information in this article applies to:

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: KBSubcategory: LinkIss
Keywords          : kberrmsg kb16bitonly LinkIss 
Version           : 5.30 | 5.31
Platform          : MS-DOS OS/2
Solution Type     : kbfix

Last Reviewed: May 22, 1998