How to enable RTTI on Windows?
See original GitHub issueC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\memory(883): warning C 4541: 'dynamic_cast' used on polymorphic type 'rocksdb::TableFactory' with /GR-; unpr edictable behavior may result (compiling source file ..\deps\rocksdb\tools\sst_dump_t ool.cc) [D:\home\js\modules_by_me\rocksdown\build\rocksdb.vcxproj]
I tried these, but it seems not work.
'conditions': [
['OS=="win"', {
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeTypeInfo': 'true',
'EnableFunctionLevelLinking': 'true',
'ExceptionHandling': '2',
'DisableSpecificWarnings': [ '4355', '4530' ,'4267', '4244' ],
}
},
'cflags!': [ '/GR-' ],
'cflags+': [ '/GR+' ],
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Delphi RTTI and C++Builder - RAD Studio
Note: The compiler option Project > Options > C++ Compiler > Enable RTTI refers to standard C++ RTTI. RTTI Generation. Only Delphi-style classes...
Read more >[Solved]-activate RTTI in c++-C++ - appsloveworld.com
In g++ RTTI is enabled by default IIRC, and you can disable it with -fno-rtti . To test whether it is active or...
Read more >activate RTTI in c++ - Stack Overflow
The easiest way to see if it's enabled by default for your compiler is to just try compiling some code using RTTI. Options...
Read more >Articles - Develop your own RTTI in C++ - Axel Menzel
Normally RTTI is an optional compiler setting, which is usually enabled. When enabled, RTTI is automatically generated for both built-in and non-polymorphic ...
Read more >Arduino Zero: Enable RTTI
It apparently is true that “RTTI (run-time type information) is disabled with the fno-rtti compiler flag”; however, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve seen this issue and the fix appears to be set the value in both Debug and Release configurations. Otherwise it doesn’t properly override the default setting.
In my case, I don’t use node-gyp anymore, I compile the bindings directly with Visual Studio. But at the time I was using the following:
Electron: 5.0.6 node-gyp: 5.0.3 Visual Studio: VS2015 community node: 12.6.0