I don't think that that is the problem: I recall that such qualification when defining the function is fine, and a quick test confirmed my memory.

More likely Test.cpp simply was not compiled...