STL Support in Linux
Hi all,
I have been working on a Porting project. I am moving my source code from VC6++ to KDE Linux.
I am facing some compilation errors:
These errors primarily due to the class _Ty and _Nodeptr term. After search i came across these terms in a file called list, which is a part of the STL Library.
Since this source code is working file on VC++ but is not working on KDE Linux. So, i checked the contents of the file list available in Linux.
It was found that the contents of the file differs from that on Windows platform.
So, how should i solve these compilation errors which are like:
>>>>>>>parse error before the ',' token in line :->
void shiftNode(_Nodeptr node, long const shift)
>>>>>>>>declaration of class _Ty
template <class _Ty> void check( CPersists *ptr) {
cout<< "Inside";
_Ty::constructor(ptr);
}
>>>>>>>>>shadows template parm 'class _Ty'
Am i targetting the problem right.
Can any one provide me a solution of this problem.
Plz give me a push back !
|