Results 1 to 4 of 4

Thread: error: expected unqualified-id before "else"

  1. #1
    iinothing is offline Registered User
    Name: Hanks Han
    Organization: USTC
    Project: multimedia player
    Join Date
    Apr 2010
    Posts
    2

    error: expected unqualified-id before "else"

    I encountered one strange problem:
    In file included from /usr/include/Ice/LocalObjectF.h:13,
    from ../Interface/DBProxy.h:16,
    .....
    /usr/include/Ice/Handle.h:45: error: expected unqualified-id before "else"
    /usr/include/Ice/Handle.h:56: error: expected unqualified-id before "else"
    /usr/include/Ice/Handle.h:67: error: expected unqualified-id before "else"
    /usr/include/Ice/Handle.h:77: error: expected unqualified-id before "else"
    /usr/include/Ice/Handle.h:87: error: expected unqualified-id before "else"


    I wrote source file DBProxy.ice and then geot DBProxy.{cpp,h}, in which I setup one service to accept the request for database. But when I included the DBProxy.h in other source files, the compiling error appeared.

    Does anybody have any idea about this?

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    I don't know what could be causing this error. Which Ice version, platform and compiler do you use?

    Cheers,
    Benoit.

  3. #3
    iinothing is offline Registered User
    Name: Hanks Han
    Organization: USTC
    Project: multimedia player
    Join Date
    Apr 2010
    Posts
    2
    ICE Version: 3.0.1
    Platform: RHEL AS release 4
    GCC Version: gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)

    On the platform, I can run simple Printer example smoothly. But when coming to real project, the error appears.

  4. #4
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    You should make sure that you're using the same compiler and compiler flags as the ones used to build the demo. In any case, we only provide free support on the forums for latest Ice version so if you need further help with this, I recommend upgrading to Ice 3.4.0.

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 01-31-2011, 07:32 PM
  2. Replies: 1
    Last Post: 06-09-2009, 10:53 PM
  3. Replies: 1
    Last Post: 01-28-2009, 06:15 AM
  4. Replies: 4
    Last Post: 10-26-2006, 11:23 AM
  5. Replies: 4
    Last Post: 01-13-2006, 06:23 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
  •