hi,
I m using c++ code in Linux OS with gcc compiler.
The class is in Template, the declaration & definition is in header file.
The calling function is in another cpp file.
Ex:template <class T> void samplefunc(T *t, int nbnumb,int ndlay,state *cs,result *rs);//declared in header
template <class T> void samplefunc(T *t, int nbnumb,int ndlay,state *cs,result *rs)//defined in header
{
}
samplefunc(temp->Getp(),temp->nbts,type:
oint,cs,rs);//calling func in cpp file.
ERROR: while calling it , it displays the error like: undefined reference to
'void class name::samplefunc<type>(t*,int,int,cs*,rs*)'
How to solve this issue?...