BUG: Warnings with RTTI and Automatic Precompiled Headers

Last reviewed: January 26, 1998
Article ID: Q179270
The information in this article applies to:
  • Microsoft Visual C++, 32-bit Enterprise Edition, version 5.0

SYMPTOMS

If Run-Time Type Information (RTTI) is selected in the C/C++ project settings and if you have selected "Automatic use of precompiled headers" for all files, including Stdafx.cpp, you may get several warning messages such as the following example:

   BSCMAKE: warning BK4503 : minor error in .SBR file '.\Debug\MainFrm.sbr'
            ignored

RESOLUTION

You can use one of the following two resolutions:

  • Click Settings on the Project menu to view the Project Settings dialog box. On the C/C++ tab, select C++ Language from the Category list. Clear "Enable Run-Time Type Information (RTTI)" and select Rebuild All from the Build menu.

    -or-

  • From the left side of the Project Settings dialog box, expand the project tree and select the Stdafx.cpp file. On the C/C++ tab, select Precompiled Headers from the Category list box. Select "Create precompiled header file(.pch)" for the Stdafx.cpp file and type stdafx.h in the box labeled "Through header."

    From the left side of the Project Settings dialog box, select the project. On the C/C++ tab, select Precompiled Headers from the Category list box. Select "Use precompiled header file(.pch)" for the Stdafx.cpp file, type stdafx.h in the box labeled "Through header," and select Rebuild All from the Build menu.

STATUS

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

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a default Custom AppWizard .exe project.

  2. Select your project in the ClassView window and click Settings on the Project menu. On the C/C++ tab, choose C++ Language from the Category list. Select "Enable Run-Time Type Information (RTTI)."

  3. Select "Automatic use of precompiled headers" from the Precompiled Header category of the C/C++ tab in the Project Settings dialog box for all the .cpp files in the project, including the Stdafx.cpp file.

  4. Select "Generate browse info" from the General category of the C/C++ tab in the Project Settings dialog box.

  5. Select "Build browse info file" on the Browse Info tab in the Project Settings dialog box and rebuild the project to see the warning messages described earlier.

You may get the warning messages when performing a Build if the precompiled header was previously created without browse information. Performing a Rebuild All of the project resolves this warning; otherwise, follow the resolution provided.
Keywords          : TlsMisc vcbuglist500
Version           : win95:5.0; winnt:5.0
Platform          : Win95 winnt
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: January 26, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.