This question already has an answer here: c++ undefined ... You're declaring a virtual function and not ...
stackoverflow.com