Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-05-2005
AlexKom AlexKom is offline
Registered User
 
 
Join Date: Jul 2005
Location: Moskow
Posts: 18
Send a message via ICQ to AlexKom
-->
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.
Reply With Quote
  #2 (permalink)  
Old 07-05-2005
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 912
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.
Reply With Quote
  #3 (permalink)  
Old 07-06-2005
AlexKom AlexKom is offline
Registered User
 
 
Join Date: Jul 2005
Location: Moskow
Posts: 18
Send a message via ICQ to AlexKom
-->
Thanks a lot. I resolve problem.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple password security SteveHicks Help Center 2 12-19-2006 03:04 PM
Efficient (and simple?) forwarding of ice invocations sylvain Help Center 2 07-18-2006 10:26 AM
Simple Ice Pack Demo Narendranath Help Center 2 06-17-2005 10:22 AM
simple IcePack demo? bterwijn Help Center 8 06-16-2005 10:31 AM
Who can give me a simple of using Ice in Java? na57 Help Center 1 08-06-2003 10:13 AM


All times are GMT -4. The time now is 10:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.