error C2027: use of undefined type 'Ice::0bjectAdapter'

in Help Center
I'm a new guy of ICE and I got a compliation error,
Simply to say, there is a function in a class,let say,
void destroy(const Ice::Current& current)
{
......
current.adapter->remove(current.id);
......
}
And I got this error "error C2027: use of undefined type 'Ice::0bjectAdapter'"
at this line.
Looks like I did not include necessary .h, but I do include the .h which is generated from .ice . I am not sure if I missed anything else?
Could someone help me on this? I serached the forums and did not get the answer.
Thanks very much!
Simply to say, there is a function in a class,let say,
void destroy(const Ice::Current& current)
{
......
current.adapter->remove(current.id);
......
}
And I got this error "error C2027: use of undefined type 'Ice::0bjectAdapter'"
at this line.
Looks like I did not include necessary .h, but I do include the .h which is generated from .ice . I am not sure if I missed anything else?
Could someone help me on this? I serached the forums and did not get the answer.
Thanks very much!
0
Comments
As for this particular problem, it does indeed sound like you are missing the appropriate header file. The quick route to solving this is to simply include the Ice.h header file, e.g.:
#include <Ice/Ice.h>
Maybe you just misquoted, but your error seems to indicate you are using the number 0 and not the letter O for ObjectAdapter.
Actually, after I include <Ice/Ice.h>, everything is ok now.
I should read more demo code at first:)