Hi,
I don't use DCE, so mine is just a wild guess.
An undefined reference to `vtable xxx' means that the linker isn't able to find the code for a function in a library. In other words, there's a linking issue (missing library) or a mismatch between the library and the caller (e.g., a removed function still being referenced in the headers).
Nevertheless, you seems to be "just" using the destructor, so... no idea.
Sorry if I can't help more,
T.