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?

Reply With Quote