Home Help Center

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

sgsoftsgsoft Member Samon SunOrganization: FreelanceProject: Remote RFID Reader
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?

Comments

  • SystemSystem Member
    是不是你slice编译参数里没有加--ice

    You need to use the option "--ice".
  • SystemSystem Member
    再有,就是如果你引用的是Ice内部定义的需要将内部的slice文件用#include引入

    You need to include the slice that Ice defined.
  • sgsoftsgsoft Member Samon SunOrganization: FreelanceProject: Remote RFID Reader
    cnhome wrote: »
    是不是你slice编译参数里没有加--ice

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

    哈哈,果然是这个原因!!!
    编译通过!非常感谢!!!
Sign In or Register to comment.