Home Help Center

slice2cpp Printer.ice error?

At last I installed Ice successfully in my FC5 and also add bin and lib to PATH
and LD_LIBRARY_PATH. I write the simple hello program according to the Ice official
distributed document "Ice-1.3.0-C.pdf".I write the Printer.ice and the content is :

interface Printer
void printString(string s);

and the I enter "slice2cpp Print.cpp" but it show error like this:
"Printer.ice:2 `Printer`:an interface can be defined only at module scope".
It seems that I can't define a interface here.
Maybe this question is quit simple but I am a new rookie to Ice.So, anybody can
help one more a time? Thanks very much.


  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    Please do not post the same question twice. Also, I highly recommend to read the manual and to have a look at some of the Ice examples.
This discussion has been closed.