Results 1 to 10 of 10

Thread: Build Ice resource code error

  1. #1
    lifesong is offline Registered User
    Join Date
    Jan 2006
    Posts
    5

    Question Build Ice resource code error


    I download the lastest version of STLport and want to use. I have set STLport path in VC directories and appended _STLP_NEW_PLATFORM_SDK macro in all ice reource projects. Then I build the the all.dsw project.
    report error as follows:
    \src\iceutil\Exception.cpp(52) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'const class stlpd_std::basic_string<char,class stlpd_std::char_traits<char>,class stlpd_std::allocator<cha
    r> >' (or there is no acceptable conversion)

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Welcome to the forum! For assistance you need to fill in your signature details as described in the link contained in my signature. We also require more information to help you, such as your operating system and compiler version. Also, why do you want to use a newer version of STLport? Note that we have not tested with any version other than the one in the VC6 requirements.

  3. #3
    lifesong is offline Registered User
    Join Date
    Jan 2006
    Posts
    5

    Exclamation


    I work on a network grid project and build projects in VC 6.0 enterprise edition on windows XP professional SP2.
    I use the newer version of STLport for that is possible better than old version.
    full name: WuQing
    universities: WuHan University
    URL: www.whu.edu.cn

  4. #4
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    My guess is that the problem has something to do with the builtin iostreams package not being compiled for STLport. Perhaps the _STLP_NO_NEW_IOSTREAMS is defined or something along these lines?

    Unless you really need some feature added in a later release of STLport, or you want to use a later version as an experiment I wouldn't bother trying to modify Ice to support this yourself. The 4.5.2 version that we officially support, and that is bundled with the Ice third party distribution is very stable.

  5. #5
    lifesong is offline Registered User
    Join Date
    Jan 2006
    Posts
    5

    Unhappy Now, have new compile errors


    open src\Ice\ice.dsp and build it.
    For the EventHandlerPtr type was defined as Handle<EventHandler> in INCLUDE\Ice\Handle.h(46).
    It isn't like a pointer type.
    Now, have new compile errors:
    1.
    src\Ice\ThreadPool.cpp(408) error C2451:
    conditional expression of type 'class IceInternal::Handle<class IceInternal::EventHandler>' is illegal
    No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

    2.
    src\Ice\ThreadPool.cpp(553) : error C2676:
    binary '||' : 'class IceInternal::Handle<class IceInternal::EventHandler>' does not define this operator or a conversion to a type acceptable to the predefined operator

    3.
    src\Ice\ThreadPool.cpp(567) : error C2819:
    type 'IceInternal::Handle<class IceInternal::EventHandler>' does not have an overloaded member 'operator ->'

  6. #6
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    You must fill in your signature details before we can help you. You should also tell us what version of the compiler, and Ice you are attempting to compile.

  7. #7
    lifesong is offline Registered User
    Join Date
    Jan 2006
    Posts
    5

    Question


    compiler : VC 6.0 Enterprise Edition
    OS : Windows XP Professional SP2
    ICE : 3.0.1
    full name: WuQing
    universities: WuHan University
    URL: www.whu.edu.cn

  8. #8
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Are you using the correct service patch level? We require service pack 5. Are you also trying to build against a new version of STLport or are you using our third party package?

  9. #9
    lifesong is offline Registered User
    Join Date
    Jan 2006
    Posts
    5
    compiler : VC 6.0 Enterprise Edition SP6
    OS : Windows XP Professional SP2
    ICE : 3.0.1
    ThirdParty : 3.0.1 (except STLport)
    STLport : 5.0.2
    full name: WuQing
    universities: WuHan University
    URL: www.whu.edu.cn

  10. #10
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Quote Originally Posted by lifesong

    open src\Ice\ice.dsp and build it.
    That's not the proper way to build Ice: you need to use the all.dsw solution when building.

    Also note that the Berkeley DB/C++ included in ThirdParty 3.0.1 (for VC6) was built using the STLPort 4.6.2 in the same distribution. If you want to use your own STLPort version, you should rebuild Berkeley DB/C++ as well using that version.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 01-21-2009, 08:32 PM
  2. Build error in Redhat Linux 9.0
    By wuqiu in forum Help Center
    Replies: 10
    Last Post: 05-16-2006, 10:39 PM
  3. Freeze sample build error
    By chenhong_sz in forum Help Center
    Replies: 7
    Last Post: 03-28-2005, 08:24 PM
  4. Replies: 6
    Last Post: 04-11-2004, 09:12 PM
  5. Resource / Code Snippet Submission?
    By amrufon in forum Comments
    Replies: 0
    Last Post: 10-29-2003, 03:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •