File A.h
#ifndef A_H_ #define A_H_ class A { public: virtual ~A(); virtual void doWork(); }; #endif
File Child.h
Make sure to delete any "*.gch" files if none of the other responses help you.