Results 1 to 3 of 3

Thread: How to compile simple program using ICE in VC 6.0?

  1. #1
    AlexKom is offline Registered User
    Name: Alexander Komarnitsky
    Organization: Home
    Project: Testing ICE features
    Join Date
    Jul 2005
    Location
    Moskow
    Posts
    18

    How to compile simple program using ICE in VC 6.0?

    Good day, all!

    I found next problem: when i create simple "hello world" application (from documentation) i receive error on compiling.

    First error was about multithreading. Ok, i resolve it.

    Second about stlport. Ok, i found that it need in include path.

    But now i receive next errors:
    c:\ice-2.1.2-vc60\include\stlport\stl\debug\_vector.h(277) : error C2953: 'vector' : template class has already been defined
    c:\ice-2.1.2-vc60\include\stlport\stl\debug\_vector.h(277) : see declaration of 'vector'
    c:\ice-2.1.2-vc60\include\iceutil\mutex.h(141) : error C2065: 'TryEnterCriticalSection' : undeclared identifier
    c:\ice-2.1.2-vc60\include\ice\proxy.h(385) : error C2027: use of undefined type 'Object'
    c:\ice-2.1.2-vc60\include\ice\objectf.h(18) : see declaration of 'Object'
    c:\ice-2.1.2-vc60\include\ice\proxy.h(385) : error C2039: 'ice_newFacet' : is not a member of 'ProxyHandle<class Ice::Object>'
    sample.cpp
    d:\work\p3solutions\ice\firstservice\sample.cpp(92 ) : warning C4541: 'dynamic_cast' used on polymorphic type 'class IceDelegate::Ice::Object' with /GR-; unpredictable behavior may result
    d:\work\p3solutions\ice\firstservice\sample.cpp(18 5) : warning C4541: 'dynamic_cast' used on polymorphic type 'class Ice::Object' with /GR-; unpredictable behavior may result
    c:\ice-2.1.2-vc60\include\ice\handle.h(181) : warning C4541: 'dynamic_cast' used on polymorphic type 'class Ice::Object' with /GR-; unpredictable behavior may result
    d:\work\p3solutions\ice\firstservice\sample.cpp(34 3) : see reference to function template instantiation 'class IceInternal::Handle<class Demo::Printer> __cdecl IceInternal::Handle<class Demo::Printer>::dynamicCast(const class IceUtil::Handle
    Base<class Ice::Object> &)' being compiled

    Can somebody say me how to build my own simple ICE server and client from "zero" (starting from Win32 console application in Wizzard)?

    Thanks.

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Please have a look at the installation instructions that come with the distribution. You need to make sure that the STLport headers are first in the search path because you need to override the broken VC++ 6 STL implementation.

    To see how to configure a project, have a look at the project files for any of the demos, such as demo/Ice/hello. This will show you the required compiler and linker options.

    Cheers,

    Michi.

  3. #3
    AlexKom is offline Registered User
    Name: Alexander Komarnitsky
    Organization: Home
    Project: Testing ICE features
    Join Date
    Jul 2005
    Location
    Moskow
    Posts
    18
    Thanks a lot. I resolve problem.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VC++ 6.0 with Ice-3.4.0
    By Yos in forum Help Center
    Replies: 1
    Last Post: 04-12-2010, 05:55 PM
  2. problem to compile my Ice program
    By peter in forum Help Center
    Replies: 2
    Last Post: 04-09-2009, 08:01 AM
  3. How to use Ice with vc.net
    By W.noon in forum Help Center
    Replies: 1
    Last Post: 10-27-2004, 08:43 AM
  4. Who can give me a simple of using Ice in Java?
    By na57 in forum Help Center
    Replies: 1
    Last Post: 08-06-2003, 09:13 AM
  5. Compiling ICE with VC 6.0
    By jpm in forum Help Center
    Replies: 2
    Last Post: 05-30-2003, 05:51 PM

Posting Permissions

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