'symbol' : a friend function of a template class must have been previously declared
A class declaration includes a reference to a friend function that is not defined. A prototype for the friend function must appear before the class declaration (perhaps in an include file).