Archived

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

building ice for C#

I have been trying to build ice for c# in Visual STudio .Net 2003. However I keep getting a prebuild event failed with the following error message.

'icecpp.exe' is not recognized as an internal or external command,
operable program or batch file.

Does anyone know what I could have done wrong?

Thanks

Comments

  • You need to add the directory that contains slice2cs.exe to your path. Or, alternatively, copy slice2cs.exe to icecs/bin -- it will be found there automatically.

    Cheers,

    Michi.
  • well I have added slice2cs.exe to the bin folder and it still gives me this error.
  • Hmmm...

    This should work. If you want to find out why it isn't working, edit Generate.cs and drop in a trace statement to show the command that is being called to invoke slice2cs.exe. Print out the value of slice2cs and cmdArgs just before the call to Process.Start. That should give you a clue as to why the command isn't found.

    Cheers,

    Michi.
  • Note that you must also add icecpp.exe to your path, in addition to slice2cs.exe.