BUG: U1157 When Building a Static Library in VWB

Last reviewed: July 22, 1997
Article ID: Q106402
1.00 1.50 1.51 1.52 WINDOWS kbenv kbbuglist

The information in this article applies to:

   The Visual Workbench, included with:
    - Microsoft Visual C++ for Windows, versions 1.0, 1.5, 1.51, and
      1.52

SYMPTOMS

The following error message may be generated when building a static library from the Visual Workbench

   LIB : fatal error U1157: comma or newline missing

CAUSE

This error occurs if the target library (<LIBNAME>.LIB) exists and its attribute is read-only.

A Visual-Workbench-generated makefile attempts to delete the existing library. If the attribute of the library is read-only, this attempt fails. However, the response file for the LIB utility assumes that the library was deleted, and has a built-in response of "y" for the prompt:

   Library does not exist. Create? (y/n)

Because this prompt does not occur, all responses are offset by one, which causes the above error.

RESOLUTION

Change the attribute of the library so that it is not read-only.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

This is not a problem in Visual C++ 32-bit Edition.

MORE INFORMATION

The following steps re-create the problem:

  1. Create a project of project type, Static library (.LIB)

  2. Build the project so that the library is created.

  3. Change the attribute of the library to read-only.

  4. Do a Rebuild-All on the project.


Additional reference words: 1.00 1.50
KBCategory: kbenv kbbuglist
KBSubcategory: VWBIss
Keywords : kb16bitonly


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