templates

Pascal Francq pfrancq at ulb.ac.be
Wed Nov 28 15:20:47 GMT 2001


On Wednesday 28 November 2001 16:11, you wrote:
> Hi every body:
>
> I'm having a problem when I tried to use templates in KDevelop, I've
> defined:
>
> 	template <class T> myclass{ /* ... */ }
>
> then I use:
>
> 	myclass <char*> newclass;
> 	newclass.insert("a word");
>
> *where insert is a valid function in myclass
> then the compiler give me the message bellow:
>
> 	undefined reference to myclass<char*>::insert(char*)
>
> Should I turn on "template" support just as "exception handling" support.
> By the way I couldn't turn on exceptio handling support.
> Please help me and explain me just as you explain a child.
> S at lu2
> Israel

Are you sure that in your template you have a impementation of:

void insert(T)
{
	// Do something
}

-- 


Ir Pascal Francq
Researcher
Université Libre de Bruxelles
CAD/CAM Department
Avenue F.D. Roosevelt, 50
CP 165/14
B-1050 Brussels
BELGIUM
Tel. +32-2-650 47 65
Fax +32-2-650 47 24
ICQ: 91206668

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list