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 *>
]

Qt Code:
  1. if ((origin_port != NULL) &&
  2. find(ports_.begin(), ports_.end(), origin_port) == ports_.end()) {//Error Here
  3. if (CreateConnection(origin_port, remote_candidate, origin_port, readable))
  4. created = true;
  5. }
To copy to clipboard, switch view to plain text mode 

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.