Archived

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

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?

Comments

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

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

    You need to include the slice that Ice defined.
  • cnhome wrote: »
    是不是你slice编译参数里没有加--ice

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

    哈哈,果然是这个原因!!!
    编译通过!非常感谢!!!