Skip to main content

IAR Embedded Workbench for Arm 9.70.x

‑‑no_rtti

In this section:
Syntax

‑‑no_rtti

Description

Use this option to disable the runtime type information (RTTI) support in the C++ language. RTTI statements like dynamic_cast and typeid will generate an error message. This option is only valid when used together with the ‑‑c++ compiler option.

See also

Using C++ and __RTTI.

Caution

Project>Options>C/C++ Compiler>Language 1>C++

and deselect

Project>Options>C/C++ Compiler>Language 1>C++ options>Enable RTTI