This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Need help


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]