In the Project Settings dialog box, click the C/C++ tab.
3.
Click to select C++ Language from the Category list.
4.
Click to clear Enable Run-Time Type Information (RTTI), and then click to select Rebuild All from the Build menu.
也可以去除/GR选项达到效果
•
Method 2
1.
From the left side of the Project Settings dialog box, expand the project tree, and then select the Stdafx.cpp file.
2.
On the C/C++ tab, select Precompiled Headers from the Category list box.
3.
Click to select Create precompiled header file(.pch) for the Stdafx.cpp file, and then type stdafx.h in the Through header box.
4.
From the left side of the Project Settings dialog box, select the project.
5.
On the C/C++ tab, click to select Precompiled Headers from the Category list.
6.
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.
可以通过取消RTTI机制达到,解决方法如下:You can use one of the following two methods: •Method 1 1.On the Project menu, click Settings.2.In the Project Settings dialog box, click the C/C+