Results 1 to 2 of 2

Thread: Building a third party library

  1. #1
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Building a third party library

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Building a third party library

    How about using std::find() instead of find()?

Similar Threads

  1. Wrap a static QT library inside an XPCOM component ?
    By Paul_Xul in forum Qt Programming
    Replies: 2
    Last Post: 3rd August 2010, 07:16
  2. import library linking
    By bruce1007 in forum Qt Programming
    Replies: 6
    Last Post: 19th May 2006, 10:27
  3. Howto: Use exported dll library functions in Qt
    By pedros09 in forum Qt Programming
    Replies: 2
    Last Post: 14th April 2006, 15:05
  4. MinGW Windows Library Search Path
    By zztop in forum Qt Programming
    Replies: 4
    Last Post: 26th March 2006, 15:18
  5. use interesting QWT Library with QT3.X
    By raphaelf in forum Qwt
    Replies: 2
    Last Post: 23rd January 2006, 11:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.