FIX: Warnings with RTTI and Automatic Precompiled Headers
Article ID: 179270
Article Last Modified on 7/31/2003
APPLIES TO
- Microsoft Visual C++ 5.0 Enterprise Edition, when used with:
- Microsoft Visual C++ 6.0 Enterprise Edition, when used with:
- Microsoft Windows 2000 Professional Edition
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
This article was previously published under Q179270
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
receive 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 methods:
- Method 1
- On the Project menu, click
Settings.
- In the Project Settings dialog box,
click the C/C++ tab.
- Click to select C++ Language from the
Category list.
- Click to clear Enable Run-Time Type
Information (RTTI), and then click to select Rebuild
All from the Build menu.
- Method 2
- From the left side of the Project
Settings dialog box, expand the project tree, and then select the
Stdafx.cpp file.
- On the C/C++ tab, select
Precompiled Headers from the Category list
box.
- Click to select Create precompiled header
file(.pch) for the Stdafx.cpp file, and then type
stdafx.h in the Through header
box.
- From the left side of the Project
Settings dialog box, select the project.
- On the C/C++ tab, click to select
Precompiled Headers from the Category
list.
- Click to select Use precompiled header
file(.pch) for the Stdafx.cpp file, type
stdafx.h in the Through header box, and
then click to select Rebuild All from the
Build menu.
STATUS
Microsoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
Keywords: kbbug kbfix kbnoupdate kbcompiler kbprod2web KB179270