Hello ,
Its difficult to diagnose the problem without knowing the exact error. Could you please edit your post with the compiler error (assuming this is compiler related) and/or your WordBank header file.
With that said, my first guess would be that your GenerateWordData function is declared protected/private within WordBank.h. If this is true then it’ll never be accessible outside the class, which conveniently enough sounds like what is happening here.