[omniORB] abstract class

Clarke Brunt clarke.brunt at trafficmaster.co.uk
Thu Mar 5 09:23:46 GMT 2009


> My problem: I have succesfully compiled my idl file, included .hh and
> .cc files into project and defined interface functions. When I compile 
> the project I get an error " C2259: 'Simple_impl' : cannot instantiate 
> abstract class"...

I've failed to spot anything obvious either. Obviously the error message
means that the compiler believes that you haven't implemented at least one
of the abstract methods in POA_ITestServer::ISimple. This would happen if
the 'signatures' of your methods didn't match. Why not try making the
datatypes of the arguments be the proper CORBA datatypes, e.g.
CORBA::UShort, CORBA::Double, CORBA::Char etc. Perhaps these aren't exactly
unsigned short, double, & char with your compiler. Could it be whether
'char' is signed or unsigned which is the problem? Find the source for
POA_ITestServer::ISimple in the generated headers, and look what exactly you
should be implementing.





More information about the omniORB-list mailing list