Why do I get a run-time error message "Access violation - no RTTI data" when I run a C++ based parser compiled with MS Visual Studio 6.0? It compiled ok. What about g++?

Michael Barnett

In Visual Studio (Visual C++), you need to go to "Project|Settings..." on the menu bar and then on the Project Settings dialog, go to the "C/C++" tab. Then choose the "C++ Language" drop-down in the "Category" box, and check "Enable Run-Time Type Information (RTTI)".

Alternatively, if you are using a makefile or other method of command line compiling, you can add "/GR" to the compile options. (That is what the Visual Studio GUI does when you check that box.)

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact