It is saying "Member declaration not found" in Word.cpp, "undefined reference to `WinMain@16'" in Word, and "recipe for target 'Word' failed" in makefile. But the code is PERFECTLY FINE. What do I have to change?
The Word::getWord() declared in Word.h is const, but the one defined in Word.cpp is non-const. Either make both const or both non-const.
As for the undefined reference, I'd guess you didn't define a main() function anywhere.