Home Help Center

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

  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    You set the include path in Tools->Options->Directories->Include Files.
    You should add there the Ice include directory.

    Cheers,
    Bernard
  • tony_htony_h Member
    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.
  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    What's the content of talnet_statec.ice, line 9? Why does a Slice file try to include C++ header files?
  • tony_htony_h Member
    My bad - didnt notice i was supposed to include the .ice instead of the .h.

    Thanks for the prompt replys.
Sign In or Register to comment.