BUG: Warnings with RTTI and Automatic Precompiled Headers
ID: Q179270
|
The information in this article applies to:
-
Microsoft Visual C++, 32-bit Enterprise Edition, versions 5.0, 6.0
on the following platforms: Win95, winnt
-
Windows 2000
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.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATIONSteps 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.
Additional query words:
kbvc500bug kbvc600bug
Keywords : kbWinOS2000 kbVC500bug kbVC600bug TlsMisc
Version : WINDOWS:5.0,6.0; :
Platform : WINDOWS
Issue type : kbbug
|