This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Need help
- From: ammalik at cs dot uwaterloo dot ca
- To: gcc at gcc dot gnu dot org
- Date: Tue, 11 Jul 2006 21:52:25 -0400
- Subject: Need help
- References: <1151528381.44a2edbd129d6@www.nexusmail.uwaterloo.ca> <56441CD2-D142-4E3E-9AA5-5D015FCFA670@apple.com>
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