vftable

Applies to C++

Purpose

Controls the generation of virtual function tables.

Syntax


Syntax Diagram

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 References

Compiler Command Line Options IBM Copyright 2003