Ставиш /GR в компиляторские установки - работает - 100% ...
Насколько я понял - используется для создания run-time type information
Но как только так сразу ... глюк глюк
Да вот описание
/GR (Enable Run-Time Type Information)
/GR
This option (/GR) adds code to check object types at run time. When this option is specified, the compiler defines the _CPPRTTI preprocessor macro. The option is cleared (/GR–) by default.
For more information on run-time type checking, see Run-Time Type Information in the C++ Language Reference.
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
Click the C/C++ folder.
Click the Language property page.
Modify the Enable Run-Time Type Info property.
To set this compiler option programmatically
See RuntimeTypeInfo Property.