BUG: Warnings with RTTI and Automatic Precompiled Headers

ID: Q179270


The information in this article applies to:


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:


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


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.

Additional query words: kbvc500bug kbvc600bug


Keywords          : kbVC500bug kbVC600bug TlsMisc 
Version           : WINDOWS:5.0,6.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: July 26, 1999