Miscellaneous C++ Specific Options

This topic contains descriptions of miscellaneous C++ specific options.

-h forcevtbl

Forces the definition of virtual function tables in cases where the heuristic methods used by the compiler to decide on definition of virtual function tables provide no guidance. The virtual function table for a class is defined in a compilation if the compilation contains a definition of the first non-inline, non-pure virtual function of the class. For classes that contain no such function, the default behavior is to define the virtual function table (but to define it as a local static entity). The -h forcevtbl option differs from the default behavior in that it does not force the definition to be local.

-h suppressvtbl

CC command line option that suppresses the definition of virtual function tables in cases where the heuristic methods used by the compiler to decide on definition of virtual function tables provide no guidance.

-h keep=file

When the -h keep=file option is specified, the static constructor/destructor object (.o) file is retained as file. This option is useful when linking .o files on a system that does not have a C++ compiler. The use of this option requires that the main function must be compiled by C++ and the static constructor/destructor function must be included in the link. With these precautions, mixed object files (files with .o suffixes) from C and C++ compilations can be linked into executables by using the linker command instead of the CC command.