rror: undefined reference to 'typeinfo for code example Example: undefined reference to `typeinfo virtual void foo() =0; //add = 0