Need help
ammalik@cs.uwaterloo.ca
ammalik@cs.uwaterloo.ca
Wed Jul 12 01:52:00 GMT 2006
Hi :
I am getting the following compilation error:
/tmp/ccIUvX3i.o(.gnu.linkonce.d._ZTV4ListIiE+0x8): undefined reference to
`List<int>::Find(int const&)'
the declaration is:
virtual int Find (const Etype &X);
and the definition is:
template <class Etype>
int
List<Etype>::Find (const Etype &X){
Node *P;
for (P=List_Head; P!=NULL; P = P->Next)
if (P->Element == X)
{
Current_Positioon = P;
return 1;
}
return 0;
}
Any suggestions!!!
Thanks
Abid
----------------------------------------
This mail sent through www.mywaterloo.ca
More information about the Gcc
mailing list