Results 1 to 2 of 2

Thread: slice2cpp problem without --stream option

  1. #1
    n2503v is offline Registered User
    Name: Alex Makarenko
    Organization: ACFR, University of Sydney
    Project: Orca
    Join Date
    Jun 2005
    Posts
    134

    slice2cpp problem without --stream option

    Hi,
    By chance I came across this potential problem in slice2cpp compiler.

    We normally call slice2cpp with --stream option which leads to successful compilation.

    A colleague was using our Slice files in a separate project and used slice2cpp without --stream.

    I've setup a test case which seems to confirm this.

    Code:
    module m
    {
    exception Ex
    {
        string s;
    };
    };
    Compiling the code generated without --stream leads to this error:

    In file included from test2.cpp:21:
    test2.h:67: error: expected unqualified-id before ‘&’ token
    test2.h:67: error: expected ‘,’ or ‘...’ before ‘&’ token
    test2.h:68: error: expected unqualified-id before ‘&’ token
    test2.h:68: error: expected ‘,’ or ‘...’ before ‘&’ token
    test2.cpp:97: error: prototype for ‘void m::Ex::__write(const Ice::OutputStreamPtr&) const’ does not match any in class ‘m::Ex’
    test2.h:67: error: candidates are: virtual void m::Ex::__write() const
    test2.cpp:73: error: virtual void m::Ex::__write(IceInternal::BasicStream*) const
    test2.cpp:105: error: prototype for ‘void m::Ex::__read(const Ice::InputStreamPtr&, bool)’ does not match any in class ‘m::Ex’
    test2.h:68: error: candidates are: virtual void m::Ex::__read()
    test2.cpp:82: error: virtual void m::Ex::__read(IceInternal::BasicStream*, bool)
    Ice-3.4.0 with Patch 1
    Linux, gcc-4.3/4.4

    Cheers,
    Alex
    Alex Makarenko
    Marathon Robotics
    project: multi-robot systems

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Thanks Alex. I've posted a patch here.

    Regards,
    Mark

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Ice 3.4.1 and C# - compilation errors with --stream option
    By brightside32 in forum Help Center
    Replies: 3
    Last Post: 02-10-2011, 07:32 PM
  2. Replies: 0
    Last Post: 03-23-2010, 10:56 AM
  3. Replies: 0
    Last Post: 03-09-2010, 08:13 PM
  4. slice2cpp possible problem
    By g00fy in forum Bug Reports
    Replies: 2
    Last Post: 01-10-2006, 01:53 PM
  5. problem aboiut stream hierarchy
    By rc_hz in forum Comments
    Replies: 2
    Last Post: 05-25-2005, 04:15 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
  •