‑‑no_dynamic_rtti_elimination
In this section:
Syntax
Description
Use this option to make the linker include dynamic (polymorphic) runtime type information (RTTI) data in the application image even when the linker heuristics indicate that it is not needed.
The linker considers dynamic runtime type information to be needed if there is a typeid or dynamic_cast expression for a polymorphic type in the included code. By default, if the linker detects no such expression, RTTI data will not be included just to make dynamic RTTI requests work.
Note
A typeid expression for a non-polymorphic type results in a direct reference to a particular RTTI object and will not cause the linker to include any potentially unneeded objects.
See also
Caution
To set this option, use Project>Options>Linker>Extra Options.