PDA

View Full Version : Building a third party library



munna
6th October 2006, 20:17
I am getting following errors while building a thrid party library. Does any one know how can I solve these ?

talk\p2p\base\p2psocket.cc(384) : error C2065: 'find' : undeclared identifier
talk\p2p\base\p2psocket.cc(384) : error C2679: binary '==' : no operator found which takes a right-hand operand of type 'std::vector<_Ty,_Ax>::iterator' (or there is no acceptable conversion)
with
[
_Ty=cricket::Port *,
_Ax=std::allocator<cricket::Port *>
]




if ((origin_port != NULL) &&
find(ports_.begin(), ports_.end(), origin_port) == ports_.end()) {//Error Here
if (CreateConnection(origin_port, remote_candidate, origin_port, readable))
created = true;
}


Any Idea on what these error are related to ?

I have tried all possible methods to find a solution for this but no result. I hope someone here will help me solve this.

Thanks a lot.

jacek
6th October 2006, 21:43
How about using std::find() instead of find()?