Results 1 to 4 of 4

Thread: demo\Ice\session: dictionary<Ice::Identity,Hello*> HelloMap; slice compile error

  1. #1
    sgsoft's Avatar
    sgsoft is offline Registered User
    Name: Samon Sun
    Organization: Freelance
    Project: Remote RFID Reader
    Join Date
    May 2007
    Location
    Beijing,China
    Posts
    28

    demo\Ice\session: dictionary<Ice::Identity,Hello*> HelloMap; slice compile error

    VC2005
    ICE 3.3.1
    Windows XP
    -------------

    When I compile demo\Ice\session,and I modify the slice define like this:
    dictionary<Ice::Identity,Hello*> HelloMap;

    but generated code has :

    ::Ice::ice_writeIdentity(__outS, p->first);

    It cause a compile error. Why?
    ------------------------------------------------
    Freelance software developer working on a new device:
    Remote RFID Reader.
    soon after ,the projiect source can be downloaded from:
    http://code.google.com/p/sgsoft-las/
    Wellcome join.

  2. #2
    cnhome is offline Registered User
    Name: Li Wenzhi
    Organization: FreeLaner
    Project: Train Enquiries for Android
    Join Date
    Apr 2005
    Location
    Beijing, China
    Posts
    64
    是不是你slice编译参数里没有加--ice

    You need to use the option "--ice".

  3. #3
    cnhome is offline Registered User
    Name: Li Wenzhi
    Organization: FreeLaner
    Project: Train Enquiries for Android
    Join Date
    Apr 2005
    Location
    Beijing, China
    Posts
    64

    Post

    再有,就是如果你引用的是Ice内部定义的需要将内部的slice文件用#include引入

    You need to include the slice that Ice defined.

  4. #4
    sgsoft's Avatar
    sgsoft is offline Registered User
    Name: Samon Sun
    Organization: Freelance
    Project: Remote RFID Reader
    Join Date
    May 2007
    Location
    Beijing,China
    Posts
    28
    Quote Originally Posted by cnhome View Post
    是不是你slice编译参数里没有加--ice

    You need to use the option "--ice".
    哈哈,果然是这个原因!!!
    编译通过!非常感谢!!!
    ------------------------------------------------
    Freelance software developer working on a new device:
    Remote RFID Reader.
    soon after ,the projiect source can be downloaded from:
    http://code.google.com/p/sgsoft-las/
    Wellcome join.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 11-05-2007, 11:35 AM
  2. Replies: 2
    Last Post: 01-11-2005, 08:57 PM
  3. Replies: 0
    Last Post: 11-30-2004, 06:07 AM
  4. Ice <-> Corba
    By Sebastian in forum Comments
    Replies: 1
    Last Post: 11-23-2004, 03:31 PM
  5. Icestorm<->Berkeley DB error
    By Mr.Freeze in forum Help Center
    Replies: 8
    Last Post: 04-01-2004, 07:41 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
  •