Results 1 to 3 of 3

Thread: slice2freeze error!

  1. #1
    cnhome is offline Registered User
    Name: Li Wenzhi
    Organization: FreeLaner
    Project: Train Enquiries for Android
    Join Date
    Apr 2005
    Location
    Beijing, China
    Posts
    64

    Post slice2freeze error!

    I just define the following struct:

    module Demo{
    class Info{
    string name;
    };
    };

    I run the slice2freezej, everything is OK.

    But slice2freeze tell me, can't find the struct.

    D:\>slice2freeze --dict StringInfoMap,string,:emo::Info test.ice
    slice2freeze: error: `:emo::Info' is not a valid type

    D:\>slice2freezej --dict StringInfoMap,string,:emo::Info test.ice

    D:\>


    How can I do with it?

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Liwzh,

    It's a syntax problem with the slice2freeze command:

    Code:
    C:\Users\bernard>slice2freeze -h
    Usage: slice2freeze [options] file-base [slice-files...]
    Options:
    -h, --help            Show this message.
    -v, --version         Display the Ice version.
    The solution is to provide this 'file-base' parameter, e.g.:

    Code:
    slice2freeze --dict StringInfoMap,string,::Demo::Info PersistentStringInfoMap test.ice
    With your command, slice2freeze mistakenly uses test.ice as your file-base and reads no .ice file. The .ice file parameters are optional since you can generate a persistent map of built-in types.

    We'll check if we can improve the error message in this situation.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    cnhome is offline Registered User
    Name: Li Wenzhi
    Organization: FreeLaner
    Project: Train Enquiries for Android
    Join Date
    Apr 2005
    Location
    Beijing, China
    Posts
    64
    Thanks a lot. Everything is OK!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. about slice2freeze
    By nbk in forum Help Center
    Replies: 2
    Last Post: 05-06-2009, 11:36 PM
  2. about slice2freeze
    By Yunqiao Yin in forum Comments
    Replies: 0
    Last Post: 11-01-2005, 08:25 PM
  3. slice2freeze generating include path is error
    By dragzhb in forum Bug Reports
    Replies: 2
    Last Post: 09-12-2004, 09:55 PM
  4. slice2freeze problem!!
    By soloman817 in forum Help Center
    Replies: 5
    Last Post: 07-13-2004, 04:41 PM
  5. Using slice2freeze
    By enzo in forum Help Center
    Replies: 2
    Last Post: 03-17-2004, 10:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •