Archived

This forum has been archived. Please start a new discussion on GitHub.

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(185) : 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(343) : 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.

Comments

  • 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.
  • Thanks a lot. I resolve problem. :)