Lines Matching refs:function

7   the vtable symbol may be undefined because the class is missing its key function
10 it's likely that your class C has a key function (defined by the ABI as the first
11 non-pure, non-inline, virtual function), but you haven't actually defined it.
13 When a class has a key function, the compiler emits the vtable (and some other
14 things as well) only in the translation unit that defines that key function. Thus,
15 if you're missing the key function, you'll also be missing the vtable. If no other
16 function calls your missing function, you won't see any undefined reference errors
20 function, and the compiler is forced to emit the vtable in every translation unit
24 ensure there is at least one eligible function that can serve as the key function.
40 Here, ``~B`` is the first non-pure, non-inline, virtual function, so it is the key
41 function. If you forget to define ``B::~B`` in your source file, the compiler will
46 key function, but it's quite common because virtual destructors are likely to be
47 the first eligible key function and it's easy to forget to implement them. It's
51 The solution in this case is to implement the missing function.
53 Forgetting to declare a virtual function in an abstract class as pure
69 functions pure. Here, ``A::bar``, being non-pure, is nominated as the key function,
76 Key function is defined, but the linker doesn't see it
79 It's also possible that you have defined the key function somewhere, but the
80 object file containing the definition of that function isn't being linked into
84 the object file or the library file containing the key function is given to