Archived

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

Slice2cpp Include Problem

I am using following prebuild step in VS6:

cd ../../common/talnet
slice2cpp --include-dir talnet -I. talnet_statec.ice

The statec file is including talnet_common.h within the same directory.

Here is first part of output :

In file included from talnet_statec.ice:9:
talnet_common.h:16: Ice/LocalObjectF.h: No such file or directory
talnet_common.h:17: Ice/ProxyF.h: No such file or directory
talnet_common.h:18: Ice/ObjectF.h: No such file or directory......

I know that it is related to an environment variable but am not sure where I need to set the ice include path.
The talnet_common.cpp builds OK when building directly in VS6.

Comments

  • bernard
    bernard Jupiter, FL
    You set the include path in Tools->Options->Directories->Include Files.
    You should add there the Ice include directory.

    Cheers,
    Bernard
  • I already have the ICE include directory set there. I have no problem building ICE files from within the VS6 IDE, the only problem I have is when slice2cpp is building files.
    More specifically, the problem only arose when i split out parts of my code and had to put #include directives in the .ice files.
  • marc
    marc Florida
    What's the content of talnet_statec.ice, line 9? Why does a Slice file try to include C++ header files?
  • My bad - didnt notice i was supposed to include the .ice instead of the .h.

    Thanks for the prompt replys.