-qvftable

C++ only

Description

Controls the generation of virtual function tables.

Syntax

Read syntax diagramSkip visual syntax diagram        .-vftable---.
>>- -q--+-novftable-+------------------------------------------><

Default

The default is to define the virtual function table for a class if the current compilation unit contains the body of the first non-inline virtual member function declared in the class member list.

Notes

Specifying -qvftable generates virtual function tables for all classes with virtual functions that are defined in the current compilation unit.

If you specify -qnovftable, no virtual function tables are generated in the current compilation unit.

Example

To compile the file myprogram.C so that no virtual function tables are generated, enter:

 xlc++ myprogram.C -qnovftable

Related information