Home Help Center

error: expected unqualified-id before "else"

iinothingiinothing Member Hanks HanOrganization: USTCProject: multimedia player
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?

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

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

    Cheers,
    Benoit.
  • iinothingiinothing Member Hanks HanOrganization: USTCProject: multimedia player
    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.
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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.
Sign In or Register to comment.