Quote:
The type_info function is an internal gcc function and i get a undefined reference to virtual table linker error if i declare a c'tor or d'tor.

Are you using ld, gcc or g++ as the linker command? You get extra magic if you link using g++. Otherwise I'd suggest that you've failed to implement a method somewhere -- GCC "keys" generation of the vtable to one of the methods (to avoid having to compile it multiple times) and, if it happens to have picked one you haven't implemented, linking will fail.

Peter