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
- Create a default Custom AppWizard .exe project.
- 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)."
- 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.
- Select "Generate browse info" from the General category of the C/C++
tab in the Project Settings dialog box.
- 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