question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to enable RTTI on Windows?

See original GitHub issue
C:\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:closed
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
graysonlangcommented, Apr 6, 2016

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.

'conditions': [
  ['OS=="win"', {
    'configurations': {
      'Debug': {
        'msvs_settings': {
          'VCCLCompilerTool': {
            'RuntimeTypeInfo': 'true',
          },
        }
      }, # Debug
      'Release': {
          'VCCLCompilerTool': {
            'RuntimeTypeInfo': 'true',
          },
        },
      }, # Release
    }, # configurations
  } ], # OS=="win"
], # conditions
0reactions
jvallesfcommented, Oct 30, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found