BUG: Compiler Error C2470: Cannot Open Database File

Last reviewed: August 8, 1997
Article ID: Q127803
The information in this article applies to:
  • Microsoft Visual C++ for Windows, versions 1.0, 1.5, 1.51, 1.52

SYMPTOMS

When building a newly created project with an eight character base name, you may receive this error:

   error C2470: cannot open database 'C:\SOURCE\ABCDEFGH.MAK\! .PDB'

Subsequent tries to Build (as opposed to Rebuild All) the project may result in this L1092 error:

   LINK: fatal error L1092: cannot open module-definition file -
   ABCDEFGH.DEF


CAUSE

The project was generated incorrectly, specifying the wrong name for the PDB file. This is a bug because the error message is not telling you what the problem really is.

RESOLUTION

Select the Project menu item in the Options menu. Click the Compiler button. In the Other Options field that is part of the Custom Options Category, enter the correct name of the PDB file. In the case described in the article, the correct name would be:

   /Fd"ABCDEFGH.PDB"

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.


Additional query words: Workbench
Keywords : kb16bitonly VwbIss
Version : 1.0 1.5 1.51 1.52
Issue type : kbbug


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