Archived

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

a problem using slice2cpp

i have a problem wheni try to run demo\glacier2\chat.when i compile Chat.ice
using slice2cpp.exe,it said as followes:

Chat.ice:13:No include path in which to find Glacier2/Session.ice
Chat.ice:24:'Glacier2::Session' is not defined

how to solve this problem?

Comments

  • marc
    marc Florida
    You must add -I<ice installation directory>/slice to your list of options, so that Glacier2/Sessions.ice is found.
  • matthew
    matthew NL, Canada
    alienwolf wrote:
    i have a problem wheni try to run demo\glacier2\chat.when i compile Chat.ice
    using slice2cpp.exe,it said as followes:

    Chat.ice:13:No include path in which to find Glacier2/Session.ice
    Chat.ice:24:'Glacier2::Session' is not defined

    how to solve this problem?

    If you are interested in this demo I would highly recommend reading this months newsletter since it contains a detailed explanation of the implementation. The source that accompanies the newsletter is a more up to date version of this demo.

    Best Regards, Matthew
  • I have retried it adding -I<ice installation directory>/slice to the list of options,it does wok.
    thank you for your help.