|
Dawei's nailed it. The reason is that you declared the function as virtual but you did not (despite what you said in the original post) declare it as pure virtual (the "=0" on the end of a declaration of a virtual function achieves that).
For reference, the error message you received is from the linker. The function as your declared it is not pure virtual, so an implementation of it is needed.
|